Page MenuHomeFreeBSD

vnode_pager: simplify loop, avoid overflow
ClosedPublic

Authored by dougm on Mar 2 2025, 1:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 25, 8:48 AM
Unknown Object (File)
Sat, Nov 22, 2:11 AM
Unknown Object (File)
Wed, Nov 19, 4:21 AM
Unknown Object (File)
Tue, Nov 18, 2:14 AM
Unknown Object (File)
Sun, Nov 2, 7:45 PM
Unknown Object (File)
Thu, Oct 30, 8:05 PM
Unknown Object (File)
Thu, Oct 30, 3:07 PM
Unknown Object (File)
Thu, Oct 30, 3:07 PM
Subscribers

Details

Summary

Filling in read-behind pages in vnode_pager_generic_getpages() is made very slightly simpler here, by avoiding overflowing the startpindex variable and then avoiding an extra test in the allocation loop that handles the overflow case.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.Mar 2 2025, 1:10 AM
dougm created this revision.
This revision is now accepted and ready to land.Mar 2 2025, 7:49 AM
This revision was automatically updated to reflect the committed changes.