Skip to content

Commit 27aec2e

Browse files
fdmananaboryas
authored andcommitted
btrfs: change return type from int to bool in check_eb_range()
The function always returns true or false but the its return type is defined as int, which makes no sense. Change it to bool. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 122d032 commit 27aec2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/btrfs/extent_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3994,8 +3994,8 @@ static bool report_eb_range(const struct extent_buffer *eb, unsigned long start,
39943994
*
39953995
* Caller should not touch the dst/src memory if this function returns error.
39963996
*/
3997-
static inline int check_eb_range(const struct extent_buffer *eb,
3998-
unsigned long start, unsigned long len)
3997+
static inline bool check_eb_range(const struct extent_buffer *eb,
3998+
unsigned long start, unsigned long len)
39993999
{
40004000
unsigned long offset;
40014001

0 commit comments

Comments
 (0)