]> git.baikalelectronics.ru Git - kernel.git/commit
mm, sl[aou]b: Extract common code for kmem_cache_create()
authorChristoph Lameter <cl@linux.com>
Fri, 6 Jul 2012 20:25:10 +0000 (15:25 -0500)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 Jul 2012 09:13:30 +0000 (12:13 +0300)
commitc7520dfac92de09b952d2410b79e2d0f8a69c82e
tree11aa16feccb68b035aa9e9f390a54e57fa2ffd83
parent62a2736e6bbb89207337562f9a3618f0f6acbf45
mm, sl[aou]b: Extract common code for kmem_cache_create()

Kmem_cache_create() does a variety of sanity checks but those
vary depending on the allocator. Use the strictest tests and put them into
a slab_common file. Make the tests conditional on CONFIG_DEBUG_VM.

This patch has the effect of adding sanity checks for SLUB and SLOB
under CONFIG_DEBUG_VM and removes the checks in SLAB for !CONFIG_DEBUG_VM.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/slab.h
mm/Makefile
mm/slab.c
mm/slab_common.c [new file with mode: 0644]
mm/slob.c
mm/slub.c