Lu Fengqi a7176f74fa btrfs: simplify the send_in_progress check in btrfs_delete_subvolume
Only when send_in_progress, we have to do something different such as
btrfs_warn() and return -EPERM. Therefore, we could check
send_in_progress first and process error handling, after the
root_item_lock has been got.

Just for better readability. No functional change.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-10-15 17:23:25 +02:00
..
2018-08-06 13:12:41 +02:00
2018-09-06 09:04:45 -07:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-09-06 09:04:45 -07:00
2018-04-12 16:29:55 +02:00
2018-03-26 15:09:39 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00