Skip to content

Commit 3bd6ad7

Browse files
jankaratytso
authored andcommitted
ext4: pack ioend structure better
On 64-bit architectures we have two 4-byte holes in struct ext4_io_end. Order entries better to avoid this and thus make the structure occupy 64 instead of 72 bytes for 64-bit architectures. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent cb0d9d4 commit 3bd6ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext4/ext4.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ typedef struct ext4_io_end {
182182
struct bio *bio; /* Linked list of completed
183183
* bios covering the extent */
184184
unsigned int flag; /* unwritten or not */
185+
atomic_t count; /* reference counter */
185186
loff_t offset; /* offset in the file */
186187
ssize_t size; /* size of the extent */
187-
atomic_t count; /* reference counter */
188188
} ext4_io_end_t;
189189

190190
struct ext4_io_submit {

0 commit comments

Comments
 (0)