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)
Mon, Jul 6, 5:29 AM
Unknown Object (File)
Sun, Jul 5, 7:55 AM
Unknown Object (File)
Sat, Jul 4, 12:34 AM
Unknown Object (File)
Fri, Jul 3, 3:06 AM
Unknown Object (File)
Thu, Jul 2, 1:36 PM
Unknown Object (File)
Tue, Jun 30, 8:58 AM
Unknown Object (File)
Apr 29 2026, 10:13 PM
Unknown Object (File)
Apr 29 2026, 2:39 AM
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>.