Page MenuHomeFreeBSD

vm_domainset: Simplify vm_domainset_iter_next()
ClosedPublic

Authored by olce on Jul 11 2025, 7:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 3:21 PM
Unknown Object (File)
Mon, Oct 13, 7:40 PM
Unknown Object (File)
Sun, Oct 12, 9:39 AM
Unknown Object (File)
Sun, Oct 12, 9:39 AM
Unknown Object (File)
Sun, Oct 12, 9:39 AM
Unknown Object (File)
Sat, Oct 11, 10:46 PM
Unknown Object (File)
Thu, Oct 9, 12:33 PM
Unknown Object (File)
Thu, Oct 9, 7:49 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.