kmemleak: Allow partial freeing of memory blocks
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:33:00 +0000 (10:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 Jul 2009 13:25:14 +0000 (14:25 +0100)
commit53238a60dd4a679f6fe5613a7ed46899587205cf
treed2224ecfb18f7e9c6cc6fb2a48d81a87e5d5b62a
parente4f7c0b44a8ac8935f223195af9ea637d0c08091
kmemleak: Allow partial freeing of memory blocks

Functions like free_bootmem() are allowed to free only part of a memory
block. This patch adds support for this via the kmemleak_free_part()
callback which removes the original object and creates one or two
additional objects as a result of the memory block split.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
include/linux/kmemleak.h
mm/kmemleak.c