Skip to content

Commit 24bd69c

Browse files
asjkdave
authored andcommitted
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>
1 parent b7c35e8 commit 24bd69c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs,
729729

730730
init_completion(&fs_devs->kobj_unregister);
731731
fs_devs->super_kobj.kset = btrfs_kset;
732-
error = kobject_init_and_add(&fs_devs->super_kobj, &btrfs_ktype, NULL,
733-
"%pU", fs_devs->fsid);
732+
error = kobject_init_and_add(&fs_devs->super_kobj,
733+
&btrfs_ktype, parent, "%pU", fs_devs->fsid);
734734
return error;
735735
}
736736

0 commit comments

Comments
 (0)