Skip to content
Commit d56791b3 authored by Roman Bobniev's avatar Roman Bobniev Committed by Pekka Enberg
Browse files

slub: proper kmemleak tracking if CONFIG_SLUB_DEBUG disabled



Move all kmemleak calls into hook functions, and make it so
that all hooks (both inside and outside of #ifdef CONFIG_SLUB_DEBUG)
call the appropriate kmemleak routines.  This allows for kmemleak
to be configured independently of slub debug features.

It also fixes a bug where kmemleak was only partially enabled in some
configurations.

Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarRoman Bobniev <Roman.Bobniev@sonymobile.com>
Signed-off-by: default avatarTim Bird <tim.bird@sonymobile.com>
Signed-off-by: default avatarPekka Enberg <penberg@iki.fi>
parent 6e466452
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment