slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS
authorLaura Abbott <labbott@fedoraproject.org>
Tue, 15 Mar 2016 21:55:06 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commitbecfda68abca673d61d5cc953e8e099816db99d9
treef6d1850b3dd589464cc93145eb0ad02c8f4f89b1
parent804aa132d341cc5838b710e62de02d62e6ad0185
slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS

SLAB_DEBUG_FREE allows expensive consistency checks at free to be turned
on or off.  Expand its use to be able to turn off all consistency
checks.  This gives a nice speed up if you only want features such as
poisoning or tracing.

Credit to Mathias Krause for the original work which inspired this
series

Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/slub.txt
include/linux/slab.h
mm/slab.h
mm/slub.c
tools/vm/slabinfo.c