diff options
author | alc <alc@FreeBSD.org> | 2004-04-11 19:57:11 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-04-11 19:57:11 +0000 |
commit | 643a21e28710b461cba9988c75a9a6c581d0e0b0 (patch) | |
tree | 7921117dbb69d6d97681e9638b1e3fa7fce57344 /sys | |
parent | a0e860ef19779054d5ad9eb746f068206b1e9a39 (diff) | |
download | FreeBSD-src-643a21e28710b461cba9988c75a9a6c581d0e0b0.zip FreeBSD-src-643a21e28710b461cba9988c75a9a6c581d0e0b0.tar.gz |
Use vm_page_hold() rather than vm_page_wire() for short-duration page
wiring. The reason being that vm_page_hold() is cheaper.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 983e67e..757aa4e 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -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; } |