mm/slab: move kmalloc() functions from slab_common.c to slub.c
authorVlastimil Babka <vbabka@suse.cz>
Tue, 3 Oct 2023 14:57:59 +0000 (16:57 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 6 Dec 2023 10:57:21 +0000 (11:57 +0100)
commit4862caa5cba027bf7de925e05e4d1a64c89d81d6
treeb4dcccadcf59f241ef04272f55916825cae05d8a
parent5a9d31d980cbc9cefcee18e186bd4c5d51f3cba2
mm/slab: move kmalloc() functions from slab_common.c to slub.c

This will eliminate a call between compilation units through
__kmem_cache_alloc_node() and allow better inlining of the allocation
fast path.

Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: David Rientjes <rientjes@google.com>
Tested-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slab.h
mm/slab_common.c
mm/slub.c