aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index 0bd1fd3d29df..1671c731800e 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -184,9 +184,7 @@ static struct kobj_type btrfs_super_ktype = {
184 .release = btrfs_super_release, 184 .release = btrfs_super_release,
185}; 185};
186 186
187static struct kset btrfs_kset = { 187static struct kset btrfs_kset;
188 .kobj = {.name = "btrfs"},
189};
190 188
191int btrfs_sysfs_add_super(struct btrfs_fs_info *fs) 189int btrfs_sysfs_add_super(struct btrfs_fs_info *fs)
192{ 190{
@@ -249,6 +247,7 @@ void btrfs_sysfs_del_super(struct btrfs_fs_info *fs)
249int btrfs_init_sysfs() 247int btrfs_init_sysfs()
250{ 248{
251 kobj_set_kset_s(&btrfs_kset, fs_subsys); 249 kobj_set_kset_s(&btrfs_kset, fs_subsys);
250 kobject_set_name(&btrfs_kset.kobj, "btrfs");
252 return kset_register(&btrfs_kset); 251 return kset_register(&btrfs_kset);
253} 252}
254 253