]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/extent_io.c
Merge branch 'fix/asoc' into for-linus
[karo-tx-linux.git] / fs / btrfs / extent_io.c
index c5d9fbb92bc31b50ec9c7e2fd955a267661afe2d..7055d11c1efdd2efef6668b18e0dfcae802a9dd7 100644 (file)
@@ -1476,7 +1476,7 @@ u64 count_range_bits(struct extent_io_tree *tree,
                        if (total_bytes >= max_bytes)
                                break;
                        if (!found) {
-                               *start = state->start;
+                               *start = max(cur_start, state->start);
                                found = 1;
                        }
                        last = state->end;