]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs: optimize out 16 bytes worth of padding in struct inode
authorTheodore Ts'o <tytso@mit.edu>
Sat, 29 Oct 2011 12:24:18 +0000 (08:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Oct 2011 12:24:18 +0000 (08:24 -0400)
commit501b118bca84c110c48636eb2fd8596d363bd645
tree461645e0b45a4833b7723ffdf28bdae71d72a230
parent23be4175cd19bb36bf2e468787662e4945a9a86c
fs: optimize out 16 bytes worth of padding in struct inode

Rearrange the fields in struct inode so that on an x86_64 system,
fields that require 8-byte alignment don't end up causing 4-byte holes
in the structure.  It reduces the size of struct inode from 568 bytes
to 552 bytes.

Also move the fields protected by i_lock (i_blocks, i_bytes, and
i_size) into the same cache line as i_lock.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
include/linux/fs.h