Skip to content

Commit

Permalink
Revert "slub: Allow removal of slab caches during boot"
Browse files Browse the repository at this point in the history
This reverts commit f5b801a.
  • Loading branch information
Pekka Enberg committed Aug 3, 2010
1 parent af537b0 commit e438444
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e438444

Please sign in to comment.