kmemleak: Only use GFP_KERNEL|GFP_ATOMIC for the internal allocations
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 17 Jun 2009 17:29:02 +0000 (18:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 17 Jun 2009 17:29:02 +0000 (18:29 +0100)
commit216c04b0d848fa3db04fc240d9cdc1d2cc1e9574
tree9c560c0f70ee43accca93a47ce64313d67e73b2a
parent65795efbd380a832ae508b04dba8f8e53f0b84d9
kmemleak: Only use GFP_KERNEL|GFP_ATOMIC for the internal allocations

Kmemleak allocates memory for pointer tracking and it tries to avoid
using GFP_ATOMIC if the caller doesn't require it. However other gfp
flags may be passed by the caller which aren't required by kmemleak.
This patch filters the gfp flags so that only GFP_KERNEL | GFP_ATOMIC
are used.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/kmemleak.c