diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3418,7 +3418,7 @@ static int sysfs_slab_add(struct kmem_cache *s) | |||
3418 | * This is typically the case for debug situations. In that | 3418 | * This is typically the case for debug situations. In that |
3419 | * case we can catch duplicate names easily. | 3419 | * case we can catch duplicate names easily. |
3420 | */ | 3420 | */ |
3421 | sysfs_remove_link(&slab_subsys.kset.kobj, s->name); | 3421 | sysfs_remove_link(&slab_subsys.kobj, s->name); |
3422 | name = s->name; | 3422 | name = s->name; |
3423 | } else { | 3423 | } else { |
3424 | /* | 3424 | /* |
@@ -3473,8 +3473,8 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name) | |||
3473 | /* | 3473 | /* |
3474 | * If we have a leftover link then remove it. | 3474 | * If we have a leftover link then remove it. |
3475 | */ | 3475 | */ |
3476 | sysfs_remove_link(&slab_subsys.kset.kobj, name); | 3476 | sysfs_remove_link(&slab_subsys.kobj, name); |
3477 | return sysfs_create_link(&slab_subsys.kset.kobj, | 3477 | return sysfs_create_link(&slab_subsys.kobj, |
3478 | &s->kobj, name); | 3478 | &s->kobj, name); |
3479 | } | 3479 | } |
3480 | 3480 | ||