mm/slab: move struct kmem_cache_cpu declaration to slub.c
authorVlastimil Babka <vbabka@suse.cz>
Tue, 3 Oct 2023 07:54:15 +0000 (09:54 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 6 Dec 2023 10:57:21 +0000 (11:57 +0100)
commit7ef08ae8277c66657127844179912214c67fb4bc
tree2a97dd5a91b34f8a650069a99afadcc98b9dd1ab
parent16a1d968358aa9e897ce995fa45cb15d55a0e83d
mm/slab: move struct kmem_cache_cpu declaration to slub.c

Nothing outside SLUB itself accesses the struct kmem_cache_cpu fields so
it does not need to be declared in slub_def.h. This allows also to move
enum stat_item.

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>
include/linux/slub_def.h
mm/slub.c