aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 4119f9a95320..934bc094bf17 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -436,7 +436,7 @@ next_slot:
436 goto out; 436 goto out;
437 } 437 }
438 if (recow) { 438 if (recow) {
439 search_start = key.offset; 439 search_start = max(key.offset, start);
440 continue; 440 continue;
441 } 441 }
442 if (btrfs_key_type(&key) == BTRFS_EXTENT_DATA_KEY) { 442 if (btrfs_key_type(&key) == BTRFS_EXTENT_DATA_KEY) {