diff options
| author | Anand Jain <[email protected]> | 2020-09-04 17:34:23 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-10-07 10:12:20 +0000 |
| commit | 178a16c94041fe5ebf86c5620094e185cec27dd2 (patch) | |
| tree | 2764b1a1413782b6ba724a0c2367923d303c0cd4 /fs/btrfs/dev-replace.c | |
| parent | btrfs: fix replace of seed device (diff) | |
| download | kernel-178a16c94041fe5ebf86c5620094e185cec27dd2.tar.gz kernel-178a16c94041fe5ebf86c5620094e185cec27dd2.zip | |
btrfs: add btrfs_sysfs_add_device helper
btrfs_sysfs_add_devices_dir() adds device link and devid kobject
(sysfs entries) for a device or all the devices in the btrfs_fs_devices.
In preparation to add these sysfs entries for the seed as well, add
a btrfs_sysfs_add_device() helper function and avoid code duplication.
Reviewed-by: Josef Bacik <[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
