Skip to content

Commit d6f67af

Browse files
morbidrsakdave
authored andcommitted
btrfs: return 0 for dev_extent_hole_check_zoned hole_start in case of error
Commit 7000bab ("btrfs: assign proper values to a bool variable in dev_extent_hole_check_zoned") assigned false to the hole_start parameter of dev_extent_hole_check_zoned(). The hole_start parameter is not boolean and returns the start location of the found hole. Fixes: 7000bab ("btrfs: assign proper values to a bool variable in dev_extent_hole_check_zoned") Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 77364fa commit d6f67af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/volumes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ static bool dev_extent_hole_check_zoned(struct btrfs_device *device,
14581458
/* Given hole range was invalid (outside of device) */
14591459
if (ret == -ERANGE) {
14601460
*hole_start += *hole_size;
1461-
*hole_size = false;
1461+
*hole_size = 0;
14621462
return true;
14631463
}
14641464

0 commit comments

Comments
 (0)