Page MenuHomeFreeBSD

vnode_pager: simplify loop, avoid overflow
ClosedPublic

Authored by dougm on Mar 2 2025, 1:10 AM.
Tags
None
Referenced Files
F119063966: D49200.id151743.diff
Wed, Jun 4, 10:50 PM
Unknown Object (File)
May 4 2025, 11:22 AM
Unknown Object (File)
Apr 8 2025, 11:45 AM
Unknown Object (File)
Mar 31 2025, 3:15 AM
Unknown Object (File)
Mar 30 2025, 2:32 AM
Unknown Object (File)
Mar 21 2025, 11:24 AM
Unknown Object (File)
Mar 20 2025, 7:23 AM
Unknown Object (File)
Mar 20 2025, 7:22 AM
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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.