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)
Wed, May 20, 5:06 AM
Unknown Object (File)
Wed, May 20, 5:06 AM
Unknown Object (File)
Sat, May 16, 2:41 AM
Unknown Object (File)
Sat, May 16, 2:41 AM
Unknown Object (File)
Sat, May 16, 2:41 AM
Unknown Object (File)
Sat, May 16, 2:41 AM
Unknown Object (File)
Sat, May 16, 2:41 AM
Unknown Object (File)
Fri, May 15, 9:11 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

Lint
Lint Skipped
Unit
Tests Skipped