summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-11-12 21:48:34 +0000
committeralc <alc@FreeBSD.org>2006-11-12 21:48:34 +0000
commit6093953d36a905170046a19eb1141c99b22fa802 (patch)
treec4a9c71fe86ec1dd8e45421082e59941e177807f /sys/vm/vm_kern.c
parent68445c77f7e732fbe9d5f4b930a9f2fcd0052b3f (diff)
downloadFreeBSD-src-6093953d36a905170046a19eb1141c99b22fa802.zip
FreeBSD-src-6093953d36a905170046a19eb1141c99b22fa802.tar.gz
Make pmap_enter() responsible for setting PG_WRITEABLE instead
of its caller. (As a beneficial side-effect, a high-contention acquisition of the page queues lock in vm_fault() is eliminated.)
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index c91dc48..e3a8c12 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -402,7 +402,7 @@ retry:
*/
pmap_enter(kernel_pmap, addr + i, m, VM_PROT_ALL, 1);
vm_page_lock_queues();
- vm_page_flag_set(m, PG_WRITEABLE | PG_REFERENCED);
+ vm_page_flag_set(m, PG_REFERENCED);
vm_page_unlock_queues();
vm_page_wakeup(m);
}
OpenPOWER on IntegriCloud