diff options
author | Anand Jain <anand.jain@oracle.com> | 2020-09-05 01:34:24 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:12:21 +0200 |
commit | 985e233e96e56b9980d5f632fc306bfa6e03f70f (patch) | |
tree | 687acf4771f9d3794a809674dcade8aeb3e3aef5 /fs/btrfs/dev-replace.c | |
parent | 178a16c94041fe5ebf86c5620094e185cec27dd2 (diff) |
btrfs: add btrfs_sysfs_remove_device helper
btrfs_sysfs_remove_devices_dir() removes device link and devid kobject
(sysfs entries) for a device or all the devices in the btrfs_fs_devices.
In preparation to remove these sysfs entries for the seed as well, add
a btrfs_sysfs_remove_device() helper function and avoid code
duplication.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions