diff options
| author | Nikolay Borisov <[email protected]> | 2020-12-17 13:21:16 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-02-08 21:58:51 +0000 |
| commit | 7056bf69e5a338811738a7932b8e707aaca9fdd0 (patch) | |
| tree | 66a9ec7443fabbe547d81c3a406d7dacfa7a116f /fs/btrfs/dev-replace.c | |
| parent | btrfs: ref-verify: make sure owner is set for all refs (diff) | |
| download | kernel-7056bf69e5a338811738a7932b8e707aaca9fdd0.tar.gz kernel-7056bf69e5a338811738a7932b8e707aaca9fdd0.zip | |
btrfs: consolidate btrfs_previous_item ret val handling in btrfs_shrink_device
Instead of having three 'if' to handle non-NULL return value consolidate
this in one 'if (ret)'. That way the code is more obvious:
- Always drop delete_unused_bgs_mutex if ret is not NULL
- If ret is negative -> goto done
- If it's 1 -> reset ret to 0, release the path and finish the loop.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Nikolay Borisov <[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
