diff options
| author | Filipe Manana <[email protected]> | 2025-04-07 11:15:25 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:44 +0000 |
| commit | 9d072bfab534b8a4ba2f75ea5aca70c325832c46 (patch) | |
| tree | b619d5b585877a4fbfe41a5ff678b952cb6502f1 /fs/btrfs/extent_map.c | |
| parent | btrfs: remove double underscore prefix from __set_extent_bit() (diff) | |
| download | kernel-9d072bfab534b8a4ba2f75ea5aca70c325832c46.tar.gz kernel-9d072bfab534b8a4ba2f75ea5aca70c325832c46.zip | |
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 <[email protected]>
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/extent_map.c')
0 files changed, 0 insertions, 0 deletions
