Page MenuHomeFreeBSD

vm_domainset: Simplify vm_domainset_iter_next()
ClosedPublic

Authored by olce on Jul 11 2025, 7:00 AM.
Tags
None
Referenced Files
F167797643: D51250.diff
Mon, Aug 24, 3:10 PM
F167738156: D51250.id161769.diff
Mon, Aug 24, 4:20 AM
Unknown Object (File)
Sat, Aug 22, 11:49 AM
Unknown Object (File)
Sat, Aug 22, 11:48 AM
Unknown Object (File)
Sat, Aug 22, 11:45 AM
Unknown Object (File)
Sat, Aug 22, 7:21 AM
Unknown Object (File)
Sat, Aug 22, 6:59 AM
Unknown Object (File)
Fri, Aug 21, 9:42 PM
Subscribers

Details

Summary

As we are now visiting each domain only once, the test in
vm_domainset_iter_prefer() about skipping the preferred domain (the one
initially visited for policy DOMAINSET_POLICY_PREFER) becomes redundant.
Removing it makes this function essentially the same as
vm_domainset_iter_rr().

Thus, remove vm_domainset_iter_prefer(). This makes all policies behave
the same in vm_domainset_iter_next().

No functional change (intended).

Diff Detail

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

Event Timeline

olce requested review of this revision.Jul 11 2025, 7:00 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 9 2025, 7:58 AM
This revision was automatically updated to reflect the committed changes.