btrfs: initialize sysfs devid and device link for seed device
authorAnand Jain <anand.jain@oracle.com>
Fri, 4 Sep 2020 17:34:28 +0000 (01:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:12:21 +0000 (12:12 +0200)
commit30b0e4e0e3f53944755257c7d02792ee7f9c072e
treed2fb1221d73d8811194902678c06050f72fd7647
parent53f8a74cbeffd45a95de5dc6d16584aadb682a31
btrfs: initialize sysfs devid and device link for seed device

We don't initialize the sysfs devid kobject and device-link yet for the
seed devices in an sprouted filesystem.
So this patch initializes the seed device devid kobject and the device
link in the sysfs.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c