aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 0e0fe0f6ec75..b181a94a7170 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1474,7 +1474,7 @@ u64 count_range_bits(struct extent_io_tree *tree,
1474 if (total_bytes >= max_bytes) 1474 if (total_bytes >= max_bytes)
1475 break; 1475 break;
1476 if (!found) { 1476 if (!found) {
1477 *start = state->start; 1477 *start = max(cur_start, state->start);
1478 found = 1; 1478 found = 1;
1479 } 1479 }
1480 last = state->end; 1480 last = state->end;