diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-08-03 00:28:21 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-08-03 00:28:21 -0400 |
commit | e438444de82f354563d46ee5d991b5916dd19b01 (patch) | |
tree | 090174e6d7ccda16859ac468053d879db768fbe1 /mm | |
parent | af537b0a6c650ab6ff7104d8163e96866b31c835 (diff) |
Revert "slub: Allow removal of slab caches during boot"
This reverts commit f5b801ac38a9612b380ee9a75ab1861f0594e79f.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -4498,13 +4498,6 @@ static int sysfs_slab_add(struct kmem_cache *s) | |||
4498 | 4498 | ||
4499 | static void sysfs_slab_remove(struct kmem_cache *s) | 4499 | static 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); |