diff options
author | Nikolay Borisov <nborisov@suse.com> | 2022-03-30 12:14:07 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-16 17:03:10 +0200 |
commit | d864546231e051e33e200025e4a6988b996f2654 (patch) | |
tree | 09befdbaf7886c595ac3b9b658d7c34cd50886a7 /include/linux/fs.h | |
parent | 398646011e3ce53409afda64bc2024d967e83880 (diff) | |
download | lwn-d864546231e051e33e200025e4a6988b996f2654.tar.gz lwn-d864546231e051e33e200025e4a6988b996f2654.zip |
btrfs: simplify code flow in btrfs_ioctl_balance
Move code in btrfs_ioctl_balance to simplify its flow. This is
possible thanks to the removal of balance v1 ioctl and ensuring 'arg'
argument is always present. First move the code duplicating the
userspace arg to the kernel 'barg'. This makes the out_unlock label
redundant. Secondly, check the validity of bargs::flags before copying
to the dynamically allocated 'bctl'. This removes the need for the
out_bctl label.
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
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 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions