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)
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>

No differences found