slub: proper kmemleak tracking if CONFIG_SLUB_DEBUG disabled
authorRoman Bobniev <Roman.Bobniev@sonymobile.com>
Tue, 8 Oct 2013 22:58:57 +0000 (15:58 -0700)
committerPekka Enberg <penberg@iki.fi>
Thu, 24 Oct 2013 17:25:10 +0000 (20:25 +0300)
commitd56791b38e34e480d869d1b88735df16c81aa684
treeb1333007313610a469f6ab6fa23c4f65e51a370e
parent6e4664525b1db28f8c4e1130957f70a94c19213e
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: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Roman Bobniev <Roman.Bobniev@sonymobile.com>
Signed-off-by: Tim Bird <tim.bird@sonymobile.com>
Signed-off-by: Pekka Enberg <penberg@iki.fi>
mm/slub.c