From: Christoph Lameter Date: Fri, 6 Jul 2012 20:25:10 +0000 (-0500) Subject: mm, sl[aou]b: Extract common code for kmem_cache_create() X-Git-Tag: v3.6-rc1~50^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=039363f38bfe5f6281e9eae5e0518b11577d9d50;p=pandora-kernel.git 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 Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed