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
F170909903: D19811.id55840.diff
Mon, Sep 7, 12:33 PM
Unknown Object (File)
Mon, Aug 31, 6:38 AM
Unknown Object (File)
Sat, Aug 29, 9:01 PM
Unknown Object (File)
Tue, Aug 25, 6:06 AM
Unknown Object (File)
Sun, Aug 23, 3:38 AM
Unknown Object (File)
Fri, Aug 21, 8:22 PM
Unknown Object (File)
Fri, Aug 21, 7:40 PM
Unknown Object (File)
Fri, Aug 21, 7:39 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.