mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
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>
This commit is contained in:
parent
81bd31793f
commit
c6c17c4dc3
@ -5640,7 +5640,7 @@ static ssize_t slabs_cpu_partial_show(struct kmem_cache *s, char *buf)
|
|||||||
objects = (slabs * oo_objects(s->oo)) / 2;
|
objects = (slabs * oo_objects(s->oo)) / 2;
|
||||||
len += sysfs_emit_at(buf, len, "%d(%d)", objects, slabs);
|
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) {
|
for_each_online_cpu(cpu) {
|
||||||
struct slab *slab;
|
struct slab *slab;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user