summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2010-08-03 07:28:21 +0300
committerPekka Enberg <penberg@cs.helsinki.fi>2010-08-03 07:28:21 +0300
commite438444de82f354563d46ee5d991b5916dd19b01 (patch)
tree090174e6d7ccda16859ac468053d879db768fbe1 /mm/slub.c
parentaf537b0a6c650ab6ff7104d8163e96866b31c835 (diff)
downloadop-kernel-dev-e438444de82f354563d46ee5d991b5916dd19b01.zip
op-kernel-dev-e438444de82f354563d46ee5d991b5916dd19b01.tar.gz
Revert "slub: Allow removal of slab caches during boot"
This reverts commit f5b801ac38a9612b380ee9a75ab1861f0594e79f.
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 9cf5dae..f0f4036 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4498,13 +4498,6 @@ static int sysfs_slab_add(struct kmem_cache *s)
static void sysfs_slab_remove(struct kmem_cache *s)
{
- if (slab_state < SYSFS)
- /*
- * Sysfs has not been setup yet so no need to remove the
- * cache from sysfs.
- */
- return;
-
kobject_uevent(&s->kobj, KOBJ_REMOVE);
kobject_del(&s->kobj);
kobject_put(&s->kobj);
OpenPOWER on IntegriCloud