[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <89e4e3a4-111e-18fb-3542-acc45b8431cd@google.com>
Date: Tue, 12 Apr 2022 16:35:03 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: JaeSang Yoo <js.yoo.5b@...il.com>
cc: Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Andrew Morton <akpm@...ux-foundation.org>,
Vlastimil Babka <vbabka@...e.cz>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Ohhoon Kwon <ohkwon1043@...il.com>,
Wonhyuk Yang <vvghjk1234@...il.com>,
Jiyoup Kim <lakroforce@...il.com>,
Donghyeok Kim <dthex5d@...il.com>,
Christoph Lameter <clameter@....com>,
JaeSang Yoo <jsyoo5b@...il.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/slub: remove unused parameter in setup_object*()
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@...il.com>
> Signed-off-by: JaeSang Yoo <jsyoo5b@...il.com>
Acked-by: David Rientjes <rientjes@...gle.com>
Powered by blists - more mailing lists