Page MenuHomeFreeBSD

vm_glue: use vm_page_alloc_domain_after
ClosedPublic

Authored by dougm on Oct 11 2024, 7:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 1:55 PM
Unknown Object (File)
Thu, Nov 21, 7:28 AM
Unknown Object (File)
Wed, Nov 6, 3:50 PM
Unknown Object (File)
Sun, Nov 3, 12:31 PM
Unknown Object (File)
Nov 2 2024, 10:39 AM
Unknown Object (File)
Oct 28 2024, 3:10 PM
Unknown Object (File)
Oct 23 2024, 2:28 AM
Unknown Object (File)
Oct 20 2024, 1:26 PM
Subscribers

Details

Summary

Drop the function vm_page_alloc_domain, used only in vm_thread_stack_back, and replace it with vm_page_alloc_domain_after there, with the extra mpred argument either computed on the first iteration or retrieved from previous iterations. Define a function vm_page_mpred() for computing that first mpred argument.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm requested review of this revision.Oct 11 2024, 7:24 AM
dougm created this revision.

This change looks good to me, having a lookup routine explicitly intended for 'mpred' is really nice as well.

This revision is now accepted and ready to land.Oct 12 2024, 4:54 PM
This revision was automatically updated to reflect the committed changes.
markj added inline comments.
sys/vm/vm_page.c
2025

The function which would logically be called vm_page_msucc() already exists and is called vm_page_find_least(). I don't have strong feelings about which name is better, but it would be good to be consistent.