diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index ba41da59e31b..b5f6f227a97c 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -1480,7 +1480,7 @@ u64 count_range_bits(struct extent_io_tree *tree, | |||
1480 | if (total_bytes >= max_bytes) | 1480 | if (total_bytes >= max_bytes) |
1481 | break; | 1481 | break; |
1482 | if (!found) { | 1482 | if (!found) { |
1483 | *start = state->start; | 1483 | *start = max(cur_start, state->start); |
1484 | found = 1; | 1484 | found = 1; |
1485 | } | 1485 | } |
1486 | last = state->end; | 1486 | last = state->end; |