Re: [PATCH] slub: proper kmemleak tracking if CONFIG_SLUB_DEBUGdisabled

From: Catalin Marinas
Date: Wed Oct 09 2013 - 09:29:07 EST


On Tue, Oct 08, 2013 at 11:58:57PM +0100, Tim Bird wrote:
> From: Roman Bobniev <Roman.Bobniev@xxxxxxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Roman Bobniev <Roman.Bobniev@xxxxxxxxxxxxxx>
> Signed-off-by: Tim Bird <tim.bird@xxxxxxxxxxxxxx>

Looks ok to me.

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/