Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206075
b: refs/heads/master
c: f5b801a
h: refs/heads/master
i:
  206073: fbb93d9
  206071: 01b2f93
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed Jul 16, 2010
1 parent bcd8010 commit 92eb1cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7278bd7d1aab5c6d35fd271eeb860548f0bd0bb
refs/heads/master: f5b801ac38a9612b380ee9a75ab1861f0594e79f
7 changes: 7 additions & 0 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -4507,6 +4507,13 @@ 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 92eb1cb

Please sign in to comment.