summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorPekka Enberg2006-09-26 08:31:25 +0200
committerLinus Torvalds2006-09-26 17:48:48 +0200
commitca5f9703dffa012cc46166e6206c5a992910e041 (patch)
treed1fb19019db14465eb8674aa1b13c6506a569705 /mm/page_io.c
parent[PATCH] mm: non syncing lock_page() (diff)
downloadkernel-qcow2-linux-ca5f9703dffa012cc46166e6206c5a992910e041.tar.gz
kernel-qcow2-linux-ca5f9703dffa012cc46166e6206c5a992910e041.tar.xz
kernel-qcow2-linux-ca5f9703dffa012cc46166e6206c5a992910e041.zip
[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 <heiko.carstens@de.ibm.com> Cc: Christoph Lameter <clameter@sgi.com> Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions