author: Johannes Thumshirn <johannes.thumshirn@wdc.com> 2021-05-10 22:39:38 +0900
committer: David Sterba <dsterba@suse.com> 2021-05-14 01:22:48 +0200
commit: d6f67afbdf9df5301641b2ef7ac4030abab3e067
parent: 77364faf21b4105ee5adbb4844fdfb461334d249
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 77cdb75acc15..bc53939fef48 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1458,7 +1458,7 @@ static bool dev_extent_hole_check_zoned(struct btrfs_device *device,
/* Given hole range was invalid (outside of device) */
if (ret == -ERANGE) {
*hole_start += *hole_size;
- *hole_size = false;
+ *hole_size = 0;
return true;
}