]> git.hungrycats.org Git - linux/commit
[PATCH] reduce size of struct buffer_head on 64bit
authorAnton Blanchard <anton@samba.org>
Tue, 24 Aug 2004 04:33:43 +0000 (21:33 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:33:43 +0000 (21:33 -0700)
commit486f80b97eb15c951eee384bd8d7d286142417af
tree262f0bac7250c7b317ba4d723649c1036d77fb24
parent1f1b31f3dca7314c57f8b0435af5ce919f19adda
[PATCH] reduce size of struct buffer_head on 64bit

Reduce size of buffer_head from 96 to 88 bytes on 64bit architectures by
putting b_count and b_size together.  b_count will still be in the first 16
bytes on 32bit architectures, so 16 byte cacheline machines shouldnt be
affected.

With this change the number of objects per 4kB slab goes up from 40 to 44
on ppc64.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/buffer_head.h