aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 9cf5dae7815..f0f403693bd 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4498,13 +4498,6 @@ static int sysfs_slab_add(struct kmem_cache *s)
4498 4498
4499static void sysfs_slab_remove(struct kmem_cache *s) 4499static void sysfs_slab_remove(struct kmem_cache *s)
4500{ 4500{
4501 if (slab_state < SYSFS)
4502 /*
4503 * Sysfs has not been setup yet so no need to remove the
4504 * cache from sysfs.
4505 */
4506 return;
4507
4508 kobject_uevent(&s->kobj, KOBJ_REMOVE); 4501 kobject_uevent(&s->kobj, KOBJ_REMOVE);
4509 kobject_del(&s->kobj); 4502 kobject_del(&s->kobj);
4510 kobject_put(&s->kobj); 4503 kobject_put(&s->kobj);