aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorGravatar Filipe Manana <fdmanana@suse.com> 2023-12-04 16:20:32 +0000
committerGravatar David Sterba <dsterba@suse.com> 2023-12-15 22:59:02 +0100
commit27f0d9c98d1554a3c0021116aef1a250088d35a0 (patch)
treeb9ca52a7307164a50050bfe8ff510318a742674f /fs/btrfs/tree-log.c
parentbtrfs: make extent_map_end() argument const (diff)
downloadlinux-27f0d9c98d1554a3c0021116aef1a250088d35a0.tar.gz
linux-27f0d9c98d1554a3c0021116aef1a250088d35a0.tar.bz2
linux-27f0d9c98d1554a3c0021116aef1a250088d35a0.zip
btrfs: refactor mergable_maps() for more readability
At mergable_maps() instead of having a single if statement with many ORed and ANDed conditions, refactor it with multiple if statements that check a single condition and return immediately once a requirement fails. This makes it easier to read. Also change the return type from int to bool, make the arguments const and rename the function from mergable_maps() to mergeable_maps(). 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/tree-log.c')
0 files changed, 0 insertions, 0 deletions