HomeFreeBSD

vnode_pager: simplify loop, avoid overflow

Description

vnode_pager: simplify loop, avoid overflow

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.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49200

Details

Provenance
dougmAuthored on Sun, Mar 2, 8:13 AM
Reviewer
kib
Differential Revision
D49200: vnode_pager: simplify loop, avoid overflow
Parents
rG23da585dd465: pci(4): Give UEFI wiring example
Branches
Unknown
Tags
Unknown