aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2020-09-04 17:34:24 +0000
committerDavid Sterba <[email protected]>2020-10-07 10:12:21 +0000
commit985e233e96e56b9980d5f632fc306bfa6e03f70f (patch)
tree687acf4771f9d3794a809674dcade8aeb3e3aef5 /fs/btrfs/dev-replace.c
parentbtrfs: add btrfs_sysfs_add_device helper (diff)
downloadkernel-985e233e96e56b9980d5f632fc306bfa6e03f70f.tar.gz
kernel-985e233e96e56b9980d5f632fc306bfa6e03f70f.zip
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 <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions