kmemleak: Do not trigger a scan when reading the debug/kmemleak file
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:27 +0000 (17:38 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 26 Jun 2009 16:38:27 +0000 (17:38 +0100)
Since there is a kernel thread for automatically scanning the memory, it
makes sense for the debug/kmemleak file to only show its findings. This
patch also adds support for "echo scan > debug/kmemleak" to trigger an
intermediate memory scan and eliminates the kmemleak_mutex (scan_mutex
covers all the cases now).

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

Simple merge
diff --cc mm/kmemleak.c
Simple merge