slab: add a flag to prevent debug_free checks on a kmem_cache
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Apr 2008 07:54:59 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:53 +0000 (08:29 -0700)
commit30327acf7846c5eb97c8e31c78317a2918d3e515
treeb4844dfd9cd85b9fc49c91b4b7e64eebac87167c
parent145980a0b07520f0f82cc40999acc92b349ea40c
slab: add a flag to prevent debug_free checks on a kmem_cache

This is a preperatory patch for the debugobjects infrastructure.  The flag
prevents debug_free checks on kmem_caches.  This is necessary to avoid
resursive calls into a debug mechanism which uses a kmem_cache itself.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slab.h