mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use vm_page_hold() rather than vm_page_wire() for short-duration page
wiring. The reason being that vm_page_hold() is cheaper.
This commit is contained in:
parent
7134a2219c
commit
148b3f62a9
1 changed files with 2 additions and 2 deletions
|
|
@ -795,7 +795,7 @@ exec_map_first_page(imgp)
|
|||
}
|
||||
}
|
||||
vm_page_lock_queues();
|
||||
vm_page_wire(ma[0]);
|
||||
vm_page_hold(ma[0]);
|
||||
vm_page_wakeup(ma[0]);
|
||||
vm_page_unlock_queues();
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
|
|
@ -814,7 +814,7 @@ exec_unmap_first_page(imgp)
|
|||
if (imgp->firstpage != NULL) {
|
||||
pmap_qremove((vm_offset_t)imgp->image_header, 1);
|
||||
vm_page_lock_queues();
|
||||
vm_page_unwire(imgp->firstpage, 1);
|
||||
vm_page_unhold(imgp->firstpage);
|
||||
vm_page_unlock_queues();
|
||||
imgp->firstpage = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue