HomeFreeBSD

vm: Don't break vm reserv that can't meet align reqs

Description

vm: Don't break vm reserv that can't meet align reqs

Function vm_reserv_test_contig has incorrectly used its alignment
and boundary parameters to find a well-positioned range of empty pages
in a reservation. Consequently, a reservation could be broken
mistakenly when it was unable to provide a satisfactory set of pages.

Rename the function, correct the errors, and add assertions to detect
the error in case it appears again.

Reviewed by: alc, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33344

(cherry picked from commit 6f1c8908272f3c0a6631e001bd2eb50a5b69261d)

Details

Provenance
dougmAuthored on Dec 16 2021, 6:20 PM
Reviewer
alc
Differential Revision
D33344: Fix alignment issues in vm_reserv_reclaim_contig
Parents
rG8596d2b3d5e1: mca: Some error handling logic improvements.
Branches
Unknown
Tags
Unknown