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
F166589164: D19811.id55802.diff
Fri, Aug 14, 6:43 PM
Unknown Object (File)
Thu, Aug 13, 10:25 PM
Unknown Object (File)
Wed, Aug 12, 5:09 PM
Unknown Object (File)
Mon, Aug 10, 4:23 AM
Unknown Object (File)
Mon, Aug 10, 12:26 AM
Unknown Object (File)
Fri, Aug 7, 8:43 AM
Unknown Object (File)
Mon, Jul 27, 3:22 AM
Unknown Object (File)
Fri, Jul 24, 4:22 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 23511

Event Timeline

sys/kern/vfs_vnops.c
2171

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.