Re: [PATCH 1/2] mm/kmemleak: Compact kmemleak_object further

From: Catalin Marinas
Date: Tue Mar 26 2024 - 13:33:23 EST


On Thu, Mar 07, 2024 at 02:05:47PM -0500, Waiman Long wrote:
> With commit 56a61617dd22 ("mm: use stack_depot for recording kmemleak's
> backtrace"), the size of kmemleak_object has been reduced by 128 bytes
> for 64-bit arches. The replacement "depot_stack_handle_t trace_handle"
> is actually just 4 bytes long leaving a hole of 4 bytes. By moving up
> trace_handle to another existing 4-byte hold, we can save 8 more bytes
> from kmemleak_object reducing its overall size from 248 to 240 bytes.
>
> Signed-off-by: Waiman Long <longman@xxxxxxxxxx>

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>