summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2012-07-06 22:25:10 +0200
committerPekka Enberg <penberg@kernel.org>2012-07-09 11:13:30 +0200
commit039363f38bfe5f6281e9eae5e0518b11577d9d50 (patch)
tree11aa16feccb68b035aa9e9f390a54e57fa2ffd83 /lib
parentslub: remove invalid reference to list iterator variable (diff)
downloadlinux-039363f38bfe5f6281e9eae5e0518b11577d9d50.tar.xz
linux-039363f38bfe5f6281e9eae5e0518b11577d9d50.zip
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions