aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorGravatar Goldwyn Rodrigues <rgoldwyn@suse.com> 2019-06-25 20:11:31 +0200
committerGravatar David Sterba <dsterba@suse.com> 2019-07-02 12:30:53 +0200
commit9b4851bc48b9346a957a71ca355ecdb7f2759fb8 (patch)
tree19dbfddad6b7158dd57f3cebddf028e7335a3687 /fs/btrfs/extent-tree.c
parentbtrfs: unexport can_overcommit (diff)
downloadlinux-9b4851bc48b9346a957a71ca355ecdb7f2759fb8.tar.gz
linux-9b4851bc48b9346a957a71ca355ecdb7f2759fb8.tar.bz2
linux-9b4851bc48b9346a957a71ca355ecdb7f2759fb8.zip
btrfs: Simplify update of space_info in __reserve_metadata_bytes()
We don't need an if-else-if chain where we can use a simple OR since both conditions are performing the same action. The short-circuit for OR will ensure that if the first condition is true, can_overcommit() is not called. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions