Page MenuHomeFreeBSD

vn_vmap_seekhole(): align running offset to the block boundary.
ClosedPublic

Authored by kib on Apr 3 2019, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 7:30 AM
Unknown Object (File)
Thu, Mar 28, 10:55 AM
Unknown Object (File)
Mar 19 2024, 2:40 PM
Unknown Object (File)
Dec 29 2023, 4:23 AM
Unknown Object (File)
Dec 28 2023, 3:06 AM
Unknown Object (File)
Dec 21 2023, 4:09 PM
Unknown Object (File)
Dec 13 2023, 8:16 PM
Unknown Object (File)
Sep 9 2023, 10:48 AM
Subscribers

Details

Summary

Otherwise we might miss the last iteration where EOF appears below unaligned noff.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/vfs_vnops.c
2171 ↗(On Diff #55776)

Shouldn't it be noff += noff % bsize == 0 ? bsize : bsize - noff % bsize? Or even noff += bsize - noff % bsize.

Fix invalid calculation of realignment.

This revision is now accepted and ready to land.Apr 4 2019, 11:06 PM
This revision was automatically updated to reflect the committed changes.