Commit 0f9008ef authored by Linus Torvalds's avatar Linus Torvalds

Fix up SLUB compile

The newly merged SLUB allocator patches had been generated before the
removal of "struct subsystem", and ended up applying fine, but wouldn't
build based on the current tree as a result.

Fix up that merge error - not that SLUB is likely really ready for
showtime yet, but at least I can fix the trivial stuff.
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5cefcab3
...@@ -3418,7 +3418,7 @@ static int sysfs_slab_add(struct kmem_cache *s) ...@@ -3418,7 +3418,7 @@ static int sysfs_slab_add(struct kmem_cache *s)
* This is typically the case for debug situations. In that * This is typically the case for debug situations. In that
* case we can catch duplicate names easily. * case we can catch duplicate names easily.
*/ */
sysfs_remove_link(&slab_subsys.kset.kobj, s->name); sysfs_remove_link(&slab_subsys.kobj, s->name);
name = s->name; name = s->name;
} else { } else {
/* /*
...@@ -3473,8 +3473,8 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name) ...@@ -3473,8 +3473,8 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
/* /*
* If we have a leftover link then remove it. * If we have a leftover link then remove it.
*/ */
sysfs_remove_link(&slab_subsys.kset.kobj, name); sysfs_remove_link(&slab_subsys.kobj, name);
return sysfs_create_link(&slab_subsys.kset.kobj, return sysfs_create_link(&slab_subsys.kobj,
&s->kobj, name); &s->kobj, name);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment