]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37df2783c7bf3cbcb4225da904b064cc296cad2b
tree9c560c0f70ee43accca93a47ce64313d67e73b2a
parentdfb27cbdb9d2b4b26e474e63345e50482a2dfcb1
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