File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
drivers/md/persistent-data Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ struct node_header {
34
34
__le32 max_entries ;
35
35
__le32 value_size ;
36
36
__le32 padding ;
37
- } __packed ;
37
+ } __attribute__(( packed , aligned ( 8 ))) ;
38
38
39
39
struct btree_node {
40
40
struct node_header header ;
41
41
__le64 keys [0 ];
42
- } __packed ;
42
+ } __attribute__(( packed , aligned ( 8 ))) ;
43
43
44
44
45
45
/*
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ struct disk_index_entry {
33
33
__le64 blocknr ;
34
34
__le32 nr_free ;
35
35
__le32 none_free_before ;
36
- } __packed ;
36
+ } __attribute__ (( packed , aligned ( 8 ))) ;
37
37
38
38
39
39
#define MAX_METADATA_BITMAPS 255
@@ -43,7 +43,7 @@ struct disk_metadata_index {
43
43
__le64 blocknr ;
44
44
45
45
struct disk_index_entry index [MAX_METADATA_BITMAPS ];
46
- } __packed ;
46
+ } __attribute__ (( packed , aligned ( 8 ))) ;
47
47
48
48
struct ll_disk ;
49
49
@@ -86,15 +86,15 @@ struct disk_sm_root {
86
86
__le64 nr_allocated ;
87
87
__le64 bitmap_root ;
88
88
__le64 ref_count_root ;
89
- } __packed ;
89
+ } __attribute__ (( packed , aligned ( 8 ))) ;
90
90
91
91
#define ENTRIES_PER_BYTE 4
92
92
93
93
struct disk_bitmap_header {
94
94
__le32 csum ;
95
95
__le32 not_used ;
96
96
__le64 blocknr ;
97
- } __packed ;
97
+ } __attribute__ (( packed , aligned ( 8 ))) ;
98
98
99
99
enum allocation_event {
100
100
SM_NONE ,
You can’t perform that action at this time.
0 commit comments