Nikolay Borisov 7056bf69e5 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 <josef@toxicpanda.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-02-08 22:58:51 +01:00
..
2019-11-18 23:43:44 +01:00
2020-10-07 12:06:57 +02:00
2020-05-25 11:25:37 +02:00
2020-12-09 19:16:05 +01:00
2020-10-07 12:13:17 +02:00
2020-12-16 12:57:51 -08:00
2020-12-16 12:57:51 -08:00