summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-07 12:15:25 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:44 +0200
commit9d072bfab534b8a4ba2f75ea5aca70c325832c46 (patch)
treeb619d5b585877a4fbfe41a5ff678b952cb6502f1 /fs/btrfs/tree-log.c
parent00ba32e5be977fc156fa5a2e5bdf6d1f6570452f (diff)
btrfs: make btrfs_find_contiguous_extent_bit() return bool instead of int
The function needs only to return true or false, so there's no need to return an integer. Currently it returns 0 when a range with the given bits is set and 1 when not found, which is a bit counter intuitive too. So change the function to return a bool instead, returning true when a range is found and false otherwise. Update the function's documentation to mention the return value too. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> 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