From: Dave Chinner Date: Fri, 24 Sep 2010 09:59:15 +0000 (+1000) Subject: xfs: pack xfs_buf structure more tightly X-Git-Tag: v2.6.37-rc1~162^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50f59e8eed85ec4c79bc2454ed50c7886f6c5ebf;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder --- Reading git-diff-tree failed