kmemleak: Slightly change the policy on newly allocated objects
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:29 +0000 (17:38 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:29 +0000 (17:38 +0100)
commitacf4968ec9dea49387ca8b3d36dfaa0850bdb2d5
tree5854dfdd96744a404a6222b9fc42aa54f9295313
parent4698c1f2bbe44ce852ef1a6716973c1f5401a4c4
kmemleak: Slightly change the policy on newly allocated objects

Newly allocated objects are more likely to be reported as false
positives. Kmemleak ignores the reporting of objects younger than 5
seconds. However, this age was calculated after the memory scanning
completed which usually takes longer than 5 seconds. This patch
make the minimum object age calculation in relation to the start of the
memory scanning.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/kmemleak.c