Re: [PATCH] mm/slub: remove unused parameter in setup_object*()
From: David Rientjes
Date: Tue Apr 12 2022 - 19:44:58 EST
On Mon, 11 Apr 2022, JaeSang Yoo wrote:
> setup_object_debug() and setup_object() has unused parameter, "struct
> slab *slab". Remove it.
>
> By the commit 3ec0974210fe ("SLUB: Simplify debug code"),
> setup_object_debug() were introduced to refactor previous code blocks
> in the setup_object(). Previous code used SlabDebug() to init_object()
> and init_tracking(). As the SlabDebug() takes "struct page *page" as
> argument, the setup_object_debug() checks flag of "struct kmem_cache *s"
> which doesn't require "struct page *page".
> As the struct page were changed into struct slab by commit bb192ed9aa719
> ("mm/slub: Convert most struct page to struct slab by spatch"), but it's
> still unused parameter.
>
> Suggested-by: Ohhoon Kwon <ohkwon1043@xxxxxxxxx>
> Signed-off-by: JaeSang Yoo <jsyoo5b@xxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>