summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorJan Kara2016-03-09 04:26:39 +0100
committerTheodore Ts'o2016-03-09 04:26:39 +0100
commit3bd6ad7b688e200ac7633b16affa164d7cd5ef07 (patch)
tree3b2dc73eac4be83330720c732e85a6934ea86fba /fs/ext4/ext4.h
parentjbd2: save some atomic ops in __JI_COMMIT_RUNNING handling (diff)
downloadkernel-qcow2-linux-3bd6ad7b688e200ac7633b16affa164d7cd5ef07.tar.gz
kernel-qcow2-linux-3bd6ad7b688e200ac7633b16affa164d7cd5ef07.tar.xz
kernel-qcow2-linux-3bd6ad7b688e200ac7633b16affa164d7cd5ef07.zip
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 157b458a69d4..5035dfebdbaf 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -182,9 +182,9 @@ typedef struct ext4_io_end {
struct bio *bio; /* Linked list of completed
* bios covering the extent */
unsigned int flag; /* unwritten or not */
+ atomic_t count; /* reference counter */
loff_t offset; /* offset in the file */
ssize_t size; /* size of the extent */
- atomic_t count; /* reference counter */
} ext4_io_end_t;
struct ext4_io_submit {