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)
Tue, Apr 29, 6:18 PM
Unknown Object (File)
Sun, Apr 6, 6:48 PM
Unknown Object (File)
Mar 2 2025, 6:35 PM
Unknown Object (File)
Feb 21 2025, 7:40 AM
Unknown Object (File)
Feb 17 2025, 9:18 PM
Unknown Object (File)
Feb 11 2025, 4:34 PM
Unknown Object (File)
Feb 11 2025, 3:44 PM
Unknown Object (File)
Feb 11 2025, 11:46 AM
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.