kmemleak: Allow kmemleak metadata allocations to fail
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Jan 2011 10:30:26 +0000 (10:30 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Jan 2011 18:32:06 +0000 (18:32 +0000)
This patch adds __GFP_NORETRY and __GFP_NOMEMALLOC flags to the kmemleak
metadata allocations so that it has a smaller effect on the users of the
kernel slab allocator. Since kmemleak allocations can now fail more
often, this patch also reduces the verbosity by passing __GFP_NOWARN and
not dumping the stack trace when a kmemleak allocation fails.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Ted Ts'o <tytso@mit.edu>

No differences found