]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/slub.c
mm/slub: remove unused parameter in setup_object*()
authorJaeSang Yoo <js.yoo.5b@gmail.com>
Mon, 11 Apr 2022 07:25:34 +0000 (16:25 +0900)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 13 Apr 2022 07:05:23 +0000 (09:05 +0200)
commitc0f81a94d405621bb492becf905f6d8267a14f9a
treeff3dfb643b85a41b21c85455b26c0db8bb75955a
parenta8f23dd166651dcda2c02f16e524f56a4bd49084
mm/slub: remove unused parameter in setup_object*()

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@gmail.com>
Signed-off-by: JaeSang Yoo <jsyoo5b@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20220411072534.3372768-1-jsyoo5b@gmail.com
mm/slub.c