diff options
| author | Anand Jain <[email protected]> | 2020-09-04 17:34:29 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-10-07 10:12:22 +0000 |
| commit | 7ad3912a70a696197d03856749f89dad7a377bc9 (patch) | |
| tree | 3e3a6fce64cef2dc1fe238d542295e693ba50c93 /fs/btrfs/dev-replace.c | |
| parent | btrfs: initialize sysfs devid and device link for seed device (diff) | |
| download | kernel-7ad3912a70a696197d03856749f89dad7a377bc9.tar.gz kernel-7ad3912a70a696197d03856749f89dad7a377bc9.zip | |
btrfs: handle errors in btrfs_sysfs_add_fs_devices
btrfs_sysfs_add_fs_devices() is called by btrfs_sysfs_add_mounted().
btrfs_sysfs_add_mounted() assumes that btrfs_sysfs_add_fs_devices() will
either add sysfs entries for all the devices or none. So this patch keeps up
to its caller expecatation and cleans up the created sysfs entries if it
has to fail at some device in the list.
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
