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
F109937490: D47054.diff
Tue, Feb 11, 11:46 AM
Unknown Object (File)
Fri, Feb 7, 3:51 AM
Unknown Object (File)
Wed, Feb 5, 4:23 PM
Unknown Object (File)
Tue, Feb 4, 5:32 PM
Unknown Object (File)
Mon, Feb 3, 3:02 AM
Unknown Object (File)
Sun, Jan 26, 6:17 PM
Unknown Object (File)
Fri, Jan 24, 5:47 PM
Unknown Object (File)
Sat, Jan 18, 5:06 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.