diff options
| author | 2022-05-05 10:08:25 +0300 | |
|---|---|---|
| committer | 2022-07-25 17:44:34 +0200 | |
| commit | 099aa97213fa99ee5ce8e35c3e9f0ec150517609 (patch) | |
| tree | 40243e12db10357ff1b44e8b94b9c3269412533b /fs/btrfs/compression.c | |
| parent | btrfs: introduce btrfs_try_lock_balance (diff) | |
| download | wireguard-linux-099aa97213fa99ee5ce8e35c3e9f0ec150517609.tar.xz wireguard-linux-099aa97213fa99ee5ce8e35c3e9f0ec150517609.zip | |
btrfs: use btrfs_try_lock_balance in btrfs_ioctl_balance
This eliminates 2 labels and makes the code generally more streamlined.
Also rename the 'out_bargs' label to 'out_unlock' since bargs is going
to be freed under the 'out' label. This also fixes a memory leak since
bargs wasn't correctly freed in one of the condition which are now moved
in btrfs_try_lock_balance.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
