diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-09-24 11:59:15 +0200 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-10-18 22:07:57 +0200 |
commit | 50f59e8eed85ec4c79bc2454ed50c7886f6c5ebf (patch) | |
tree | ffb2fa359ee0751ce2f0f6dd29afc39eeda1ca86 /fs/xfs/linux-2.6/xfs_super.c | |
parent | xfs: convert buffer cache hash to rbtree (diff) | |
download | linux-50f59e8eed85ec4c79bc2454ed50c7886f6c5ebf.tar.xz linux-50f59e8eed85ec4c79bc2454ed50c7886f6c5ebf.zip |
xfs: pack xfs_buf structure more tightly
pahole reports the struct xfs_buf has quite a few holes in it, so
packing the structure better will reduce the size of it by 16 bytes.
Also, move all the fields used in cache lookups into the first
cacheline.
Before on x86_64:
/* size: 320, cachelines: 5 */
/* sum members: 298, holes: 6, sum holes: 22 */
After on x86_64:
/* size: 304, cachelines: 5 */
/* padding: 6 */
/* last cacheline: 48 bytes */
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
0 files changed, 0 insertions, 0 deletions