diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-06-16 21:16:13 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-17 00:16:16 +0400 |
commit | 4b356be019d0c28f67af02809df7072c1c8f7d32 (patch) | |
tree | 03c340e3168a1cae72fd7c96855382ac0c195da6 /fs/udf/udfdecl.h | |
parent | 8dab5241d06bfc9ee141ea78c56cde5070d7460d (diff) | |
download | linux-4b356be019d0c28f67af02809df7072c1c8f7d32.tar.xz |
SLUB: minimum alignment fixes
If ARCH_KMALLOC_MINALIGN is set to a value greater than 8 (SLUBs smallest
kmalloc cache) then SLUB may generate duplicate slabs in sysfs (yes again)
because the object size is padded to reach ARCH_KMALLOC_MINALIGN. Thus the
size of the small slabs is all the same.
No arch sets ARCH_KMALLOC_MINALIGN larger than 8 though except mips which
for some reason wants a 128 byte alignment.
This patch increases the size of the smallest cache if
ARCH_KMALLOC_MINALIGN is greater than 8. In that case more and more of the
smallest caches are disabled.
If we do that then the count of the active general caches that is displayed
on boot is not correct anymore since we may skip elements of the kmalloc
array. So count them separately.
This approach was tested by Havard yesterday.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/udf/udfdecl.h')
0 files changed, 0 insertions, 0 deletions