Page MenuHomeFreeBSD

vm_page: drop find_least
ClosedPublic

Authored by dougm on Apr 26 2025, 2:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 29, 10:13 PM
Unknown Object (File)
Wed, Apr 29, 2:39 AM
Unknown Object (File)
Tue, Apr 28, 11:47 PM
Unknown Object (File)
Tue, Apr 28, 3:11 AM
Unknown Object (File)
Tue, Apr 28, 1:33 AM
Unknown Object (File)
Apr 23 2026, 12:31 PM
Unknown Object (File)
Apr 23 2026, 12:02 PM
Unknown Object (File)
Apr 21 2026, 7:13 PM
Subscribers

Details

Summary

Remove the function vm_page_find_least and in the place it is used, replace it with vm_radix_lookup_ge().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Apr 26 2025, 2:36 AM
dougm created this revision.
This revision is now accepted and ready to land.Apr 26 2025, 4:59 AM
This revision was automatically updated to reflect the committed changes.

Anyone calling vm_page_find_least(object, pindex) from ports code should now use
vm_radix_object_ge(&object->rtree, pindex);

You'll probably need to include <vm/vm_radix.h>.