]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
slub: Do not use 192 byte sized cache if minimum alignment is 128 byte
authorChristoph Lameter <cl@linux-foundation.org>
Thu, 3 Jul 2008 14:14:26 +0000 (09:14 -0500)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 3 Jul 2008 16:01:55 +0000 (19:01 +0300)
commit41d54d3bf83f62d3ff5948cb788fe6007e66a0d0
tree7aef950af184b3f9b406127415be1f0b52bca8c7
parent481c5346d0981940ee63037eb53e4e37b0735c10
slub: Do not use 192 byte sized cache if minimum alignment is 128 byte

The 192 byte cache is not necessary if we have a basic alignment of 128
byte. If it would be used then the 192 would be aligned to the next 128 byte
boundary which would result in another 256 byte cache. Two 256 kmalloc caches
cause sysfs to complain about a duplicate entry.

MIPS needs 128 byte aligned kmalloc caches and spits out warnings on boot without
this patch.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
include/linux/slub_def.h
mm/slub.c