diff options
| author | Filipe Manana <[email protected]> | 2023-10-19 12:19:30 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-12-15 19:27:00 +0000 |
| commit | 80d197fe04e87602be402337854321c59a31acf9 (patch) | |
| tree | c9a87a7efe530d7164deb333aaf70dc8bbe42df1 /fs/btrfs/compression.h | |
| parent | btrfs: use bool for return type of btrfs_block_can_be_shared() (diff) | |
| download | kernel-80d197fe04e87602be402337854321c59a31acf9.tar.gz kernel-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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
0 files changed, 0 insertions, 0 deletions
