path: root/mm/page_io.c
diff options
authorPekka Enberg <>2006-09-25 23:31:25 -0700
committerLinus Torvalds <>2006-09-26 08:48:48 -0700
commitca5f9703dffa012cc46166e6206c5a992910e041 (patch)
treed1fb19019db14465eb8674aa1b13c6506a569705 /mm/page_io.c
parentdb37648cd6ce9b828abd6d49aa3d269926ee7b7d (diff)
[PATCH] slab: respect architecture and caller mandated alignment
As explained by Heiko, on s390 (32-bit) ARCH_KMALLOC_MINALIGN is set to eight because their common I/O layer allocates data structures that need to have an eight byte alignment. This does not work when CONFIG_SLAB_DEBUG is enabled because kmem_cache_create will override alignment to BYTES_PER_WORD which is four. So change kmem_cache_create to ensure cache alignment is always at minimum what the architecture or caller mandates even if slab debugging is enabled. Cc: Heiko Carstens <> Cc: Christoph Lameter <> Signed-off-by: Manfred Spraul <> Signed-off-by: Pekka Enberg <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions