Commit f8922a48 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer

dm: favour __aligned(N) versus "__attribute__ (aligned(N))"

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 6a808034
...@@ -39,7 +39,7 @@ struct io { ...@@ -39,7 +39,7 @@ struct io {
void *context; void *context;
void *vma_invalidate_address; void *vma_invalidate_address;
unsigned long vma_invalidate_size; unsigned long vma_invalidate_size;
} __attribute__((aligned(DM_IO_MAX_REGIONS))); } __aligned(DM_IO_MAX_REGIONS);
static struct kmem_cache *_dm_io_cache; static struct kmem_cache *_dm_io_cache;
......
...@@ -35,12 +35,12 @@ struct node_header { ...@@ -35,12 +35,12 @@ struct node_header {
__le32 max_entries; __le32 max_entries;
__le32 value_size; __le32 value_size;
__le32 padding; __le32 padding;
} __attribute__((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
struct btree_node { struct btree_node {
struct node_header header; struct node_header header;
__le64 keys[]; __le64 keys[];
} __attribute__((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
/* /*
......
...@@ -34,7 +34,7 @@ struct disk_index_entry { ...@@ -34,7 +34,7 @@ struct disk_index_entry {
__le64 blocknr; __le64 blocknr;
__le32 nr_free; __le32 nr_free;
__le32 none_free_before; __le32 none_free_before;
} __attribute__ ((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
#define MAX_METADATA_BITMAPS 255 #define MAX_METADATA_BITMAPS 255
...@@ -44,7 +44,7 @@ struct disk_metadata_index { ...@@ -44,7 +44,7 @@ struct disk_metadata_index {
__le64 blocknr; __le64 blocknr;
struct disk_index_entry index[MAX_METADATA_BITMAPS]; struct disk_index_entry index[MAX_METADATA_BITMAPS];
} __attribute__ ((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
struct ll_disk; struct ll_disk;
...@@ -103,7 +103,7 @@ struct disk_sm_root { ...@@ -103,7 +103,7 @@ struct disk_sm_root {
__le64 nr_allocated; __le64 nr_allocated;
__le64 bitmap_root; __le64 bitmap_root;
__le64 ref_count_root; __le64 ref_count_root;
} __attribute__ ((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
#define ENTRIES_PER_BYTE 4 #define ENTRIES_PER_BYTE 4
...@@ -111,7 +111,7 @@ struct disk_bitmap_header { ...@@ -111,7 +111,7 @@ struct disk_bitmap_header {
__le32 csum; __le32 csum;
__le32 not_used; __le32 not_used;
__le64 blocknr; __le64 blocknr;
} __attribute__ ((packed, aligned(8))); } __attribute__ ((packed)) __aligned(8);
/*----------------------------------------------------------------*/ /*----------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment