summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-06-03 23:50:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2012-06-03 23:50:19 +0200
commit2f9d3df8aa1cc3c6db5cfa0bad3f0745e04cc27d (patch)
treef5cb17f1db0e8308eae0c7271c1d2dc86851c95d /mm
parentLinux 3.5-rc1 (diff)
downloadlinux-2f9d3df8aa1cc3c6db5cfa0bad3f0745e04cc27d.tar.xz
linux-2f9d3df8aa1cc3c6db5cfa0bad3f0745e04cc27d.zip
vfs: move inode stat information closer together
The comment above it says "Stat data, not accessed from path walking", but in fact some of inode fields we use for the common stat data was way down at the end of the inode, causing unnecessary cache misses for the common stat operations. The inode structure is pretty big, and this can change padding depending on field width, but at least on the common 64-bit configurations this doesn't change the size. Some of our inode layout has historically been to tro to avoid unnecessary padding fields, but cache locality is at least as important for layout, if not more. Noticed by looking at kernel profiles, and noticing that the "i_blkbits" access stood out like a sore thumb. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions