add patch return-hole-from-ext4_map_blocks
[ext4-patch-queue.git] / pack-ioend-structure-better
blob872493ab947fc489771dd7cf15df41ed64413db9
1 ext4: pack ioend structure better
3 From: Jan Kara <jack@suse.cz>
5 On 64-bit architectures we have two 4-byte holes in struct ext4_io_end.
6 Order entries better to avoid this and thus make the structure occupy
7 64 instead of 72 bytes for 64-bit architectures.
9 Signed-off-by: Jan Kara <jack@suse.cz>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 ---
12  fs/ext4/ext4.h | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
16 index 157b458a..5035dfe 100644
17 --- a/fs/ext4/ext4.h
18 +++ b/fs/ext4/ext4.h
19 @@ -182,9 +182,9 @@ typedef struct ext4_io_end {
20         struct bio              *bio;           /* Linked list of completed
21                                                  * bios covering the extent */
22         unsigned int            flag;           /* unwritten or not */
23 +       atomic_t                count;          /* reference counter */
24         loff_t                  offset;         /* offset in the file */
25         ssize_t                 size;           /* size of the extent */
26 -       atomic_t                count;          /* reference counter */
27  } ext4_io_end_t;
29  struct ext4_io_submit {