summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/zstd.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-10-19 13:19:30 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-15 20:27:00 +0100
commit80d197fe04e87602be402337854321c59a31acf9 (patch)
treec9a87a7efe530d7164deb333aaf70dc8bbe42df1 /fs/btrfs/zstd.c
parent6e5de50fc5d71e0a5fe2357c067cea752fe375d7 (diff)
downloadlinux-stable-80d197fe04e87602be402337854321c59a31acf9.tar.gz
linux-stable-80d197fe04e87602be402337854321c59a31acf9.tar.bz2
linux-stable-80d197fe04e87602be402337854321c59a31acf9.zip
btrfs: make the logic from btrfs_block_can_be_shared() easier to read
The logic in btrfs_block_can_be_shared() is hard to follow as we have a lot of conditions in a single if statement including a subexpression with a logical or and two nested if statements inside the main if statement. Make this easier to read by using separate if statements that return immediately when we find a condition that determines if a block can be or can not be shared. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zstd.c')
0 files changed, 0 insertions, 0 deletions