From: Anand Jain Date: Mon, 9 Mar 2015 22:38:39 +0000 (+0800) Subject: Btrfs: sysfs: add support to add parent for fsid X-Git-Tag: firefly_0821_release~176^2~1298^2~30^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=24bd69cb0fb2d90f4ced5f6acfee3688b33bcbdd;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David Sterba --- 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; }