Page MenuHomeFreeBSD

vm_domainset: Simplify vm_domainset_iter_next()
ClosedPublic

Authored by olce on Jul 11 2025, 7:00 AM.
Tags
None
Referenced Files
F175280083: D51250.id161769.diff
Fri, Oct 9, 4:09 PM
F175275218: D51250.diff
Fri, Oct 9, 3:47 PM
Unknown Object (File)
Sun, Oct 4, 2:23 AM
Unknown Object (File)
Sep 5 2026, 9:16 PM
Unknown Object (File)
Sep 3 2026, 2:45 AM
Unknown Object (File)
Sep 1 2026, 2:48 AM
Unknown Object (File)
Aug 29 2026, 7:06 PM
Unknown Object (File)
Aug 29 2026, 8:47 AM
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.