summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2015-03-10 06:38:39 +0800
committerDavid Sterba <dsterba@suse.cz>2015-05-27 12:27:22 +0200
commit24bd69cb0fb2d90f4ced5f6acfee3688b33bcbdd (patch)
tree7ea87e3538940c2511fc283f9e5bb6a426680c0c /fs/btrfs/sysfs.c
parentb7c35e81adcd593daca2160b5ba0ec62f71a9303 (diff)
downloadlinux-stable-24bd69cb0fb2d90f4ced5f6acfee3688b33bcbdd.tar.gz
linux-stable-24bd69cb0fb2d90f4ced5f6acfee3688b33bcbdd.tar.bz2
linux-stable-24bd69cb0fb2d90f4ced5f6acfee3688b33bcbdd.zip
Btrfs: sysfs: add support to add parent for fsid
To support seed sysfs layout and represent seed fsid under the sprout we need the facility to create fsid under the specified parent. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index b35366c88d3d..ea81a057c79b 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -729,8 +729,8 @@ int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs,
init_completion(&fs_devs->kobj_unregister);
fs_devs->super_kobj.kset = btrfs_kset;
- error = kobject_init_and_add(&fs_devs->super_kobj, &btrfs_ktype, NULL,
- "%pU", fs_devs->fsid);
+ error = kobject_init_and_add(&fs_devs->super_kobj,
+ &btrfs_ktype, parent, "%pU", fs_devs->fsid);
return error;
}