Commit bd96e07
committed
Fix flush to use BlockCeilIdx for end boundary
Changed the flush closure in WriteAtWithoutLock to use BlockCeilIdx instead
of BlockIdx for the end boundary calculation. This makes it consistent with
setIsCached, isCached, and WriteZeroesAt functions, preventing edge cases
where non-block-aligned end offsets could cause the tracker to miss the
final partial block while still operating on it with punchHole or copy.1 parent 11438b0 commit bd96e07
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
0 commit comments