diff options
author | Xiongwei Song <xiongwei.song@windriver.com> | 2023-04-13 17:34:50 +0300 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2023-05-22 16:20:21 +0300 |
commit | c6c17c4dc36684fe119a1d40eb41ea65677bdfae (patch) | |
tree | 23f9fa79224393beea0983071919cd46ab967244 | |
parent | 81bd31793fd3be4fec2818e2267997f56ac18fb2 (diff) | |
download | linux-c6c17c4dc36684fe119a1d40eb41ea65677bdfae.tar.xz |
slub: Remove CONFIG_SMP defined check
As CONFIG_SMP is one of dependencies of CONFIG_SLUB_CPU_PARTIAL, so if
CONFIG_SLUB_CPU_PARTIAL is defined then CONFIG_SMP must be defined,
no need to check CONFIG_SMP definition here.
Signed-off-by: Xiongwei Song <xiongwei.song@windriver.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c index bd3b00bb865b..2ae6af40c1a4 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5640,7 +5640,7 @@ static ssize_t slabs_cpu_partial_show(struct kmem_cache *s, char *buf) objects = (slabs * oo_objects(s->oo)) / 2; len += sysfs_emit_at(buf, len, "%d(%d)", objects, slabs); -#if defined(CONFIG_SLUB_CPU_PARTIAL) && defined(CONFIG_SMP) +#ifdef CONFIG_SLUB_CPU_PARTIAL for_each_online_cpu(cpu) { struct slab *slab; |