Revert "slub: Allow removal of slab caches during boot"

This reverts commit f5b801ac38.
This commit is contained in:
Pekka Enberg 2010-08-03 07:28:21 +03:00
parent af537b0a6c
commit e438444de8
1 changed files with 0 additions and 7 deletions

View File

@ -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);