X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=extent_io.h;h=bd6cf9ef5bb07e4b44eeb17fbd1e3395b8a2bcf4;hb=441d8aea8ff939dcd4e37286831d42c91610b5eb;hp=61cba9289ac8470ce319cbb77c22b67a39900f99;hpb=9c92c4eb92c41860819a5c9e25972451541f1b02;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/extent_io.h b/extent_io.h index 61cba92..bd6cf9e 100644 --- a/extent_io.h +++ b/extent_io.h @@ -29,18 +29,18 @@ #include #endif /* BTRFS_FLAT_INCLUDES */ -#define EXTENT_DIRTY 1 -#define EXTENT_WRITEBACK (1 << 1) -#define EXTENT_UPTODATE (1 << 2) -#define EXTENT_LOCKED (1 << 3) -#define EXTENT_NEW (1 << 4) -#define EXTENT_DELALLOC (1 << 5) -#define EXTENT_DEFRAG (1 << 6) -#define EXTENT_DEFRAG_DONE (1 << 7) -#define EXTENT_BUFFER_FILLED (1 << 8) -#define EXTENT_CSUM (1 << 9) -#define EXTENT_BAD_TRANSID (1 << 10) -#define EXTENT_BUFFER_DUMMY (1 << 11) +#define EXTENT_DIRTY (1U << 0) +#define EXTENT_WRITEBACK (1U << 1) +#define EXTENT_UPTODATE (1U << 2) +#define EXTENT_LOCKED (1U << 3) +#define EXTENT_NEW (1U << 4) +#define EXTENT_DELALLOC (1U << 5) +#define EXTENT_DEFRAG (1U << 6) +#define EXTENT_DEFRAG_DONE (1U << 7) +#define EXTENT_BUFFER_FILLED (1U << 8) +#define EXTENT_CSUM (1U << 9) +#define EXTENT_BAD_TRANSID (1U << 10) +#define EXTENT_BUFFER_DUMMY (1U << 11) #define EXTENT_IOBITS (EXTENT_LOCKED | EXTENT_WRITEBACK) #define BLOCK_GROUP_DATA (1U << 1) @@ -97,7 +97,7 @@ struct extent_buffer { int refs; u32 flags; int fd; - char data[]; + char data[] __attribute__((aligned(8))); }; static inline void extent_buffer_get(struct extent_buffer *eb) @@ -125,8 +125,7 @@ static inline int set_extent_buffer_uptodate(struct extent_buffer *eb) return 0; } -static inline int clear_extent_buffer_uptodate(struct extent_io_tree *tree, - struct extent_buffer *eb) +static inline int clear_extent_buffer_uptodate(struct extent_buffer *eb) { eb->flags &= ~EXTENT_UPTODATE; return 0;