HomeFreeBSD

vm_pageout: fix pageout_flush

Description

vm_pageout: fix pageout_flush

A change just made to vm_pageout_flush wrongly dismissed the variable
'runlen' and used 'count' in its place, with the unintended
consequence of terminating the main loop of the function prematurely
when the first VM_PAGER_AGAIN pageout status was encountered.
Reintroduce that variable, so that the loop runs to completion.

Reported by: alc
Reviewed by: alc
Fixes: f2a193a967e3 ("vm_pageout: reduce number of flush() params")
Differential Revision: https://reviews.freebsd.org/D50622

Details

Provenance
dougmAuthored on May 31 2025, 6:02 PM
Reviewer
rGf2a193a967e3: vm_pageout: reduce number of flush() params
Differential Revision
D50622: vm_pageout: fix pageout_flush
Parents
rG3556ffa6adff: kern_thr.c: fix typo
Branches
Unknown
Tags
Unknown