diff options
| author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2018-08-04 16:10:53 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2018-10-15 18:23:25 +0300 |
| commit | a7176f74fa570c83a48e66435b77651ad8fc5aee (patch) | |
| tree | 100d0f82bee3330445b55726e9a67515a24f7db4 /fs/btrfs/delayed-inode.c | |
| parent | 35a7f35ad1b150ddf59a41dcac7b2fa32982be0e (diff) | |
| download | linux-a7176f74fa570c83a48e66435b77651ad8fc5aee.tar.xz | |
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>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions
