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
F153632993: D19811.diff
Wed, Apr 22, 12:28 PM
F153593917: D19811.diff
Wed, Apr 22, 5:07 AM
Unknown Object (File)
Wed, Apr 22, 12:19 AM
Unknown Object (File)
Tue, Apr 21, 4:52 PM
Unknown Object (File)
Wed, Apr 15, 6:35 PM
Unknown Object (File)
Wed, Apr 15, 6:27 PM
Unknown Object (File)
Wed, Apr 15, 6:25 PM
Unknown Object (File)
Wed, Apr 15, 6:18 PM
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.