Page MenuHomeFreeBSD

vm_fault: use iterator for allocation
ClosedPublic

Authored by dougm on Apr 9 2025, 6:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 7, 5:39 AM
Unknown Object (File)
Mon, Apr 27, 7:47 AM
Unknown Object (File)
Tue, Apr 21, 1:49 AM
Unknown Object (File)
Mon, Apr 20, 8:18 PM
Unknown Object (File)
Mon, Apr 20, 7:03 PM
Unknown Object (File)
Mon, Apr 20, 11:44 AM
Unknown Object (File)
Fri, Apr 17, 9:52 PM
Unknown Object (File)
Apr 12 2026, 11:47 PM
Subscribers

Details

Summary

Pass an iterator to vm_fault_allocate, so that it can invoke vm_page_alloc_after. In vm_fault_object, use an iterator for a page lookup so that the search can benefit the allocation in vm_fault_allocate. In vm_fault, define an iterator, initialize it only when it might be used, and pass it on to vm_fault_allocate.

Diff Detail

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