diff options
author | alc <alc@FreeBSD.org> | 2002-07-29 05:42:44 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-29 05:42:44 +0000 |
commit | ca32cecfcfe6ceb74d047ffd192584fc8c38fe1c (patch) | |
tree | 54ab570447182c5d9a6dde6b3c510f6c6e9a5f1d /sys/vm | |
parent | 4eb45c786287e1948e9e1de069d3e7d892bdaf92 (diff) | |
download | FreeBSD-src-ca32cecfcfe6ceb74d047ffd192584fc8c38fe1c.zip FreeBSD-src-ca32cecfcfe6ceb74d047ffd192584fc8c38fe1c.tar.gz |
o Pass VM_ALLOC_WIRED to vm_page_grab() rather than calling vm_page_wire()
in pmap_new_thread(), pmap_pinit(), and vm_proc_new().
o Lock page queue accesses by vm_page_free() in pmap_object_init_pt().
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_glue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 36f709d..ca1d582 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -230,15 +230,10 @@ vm_proc_new(struct proc *p) /* * Get a uarea page. */ - m = vm_page_grab(upobj, i, VM_ALLOC_NORMAL | VM_ALLOC_RETRY); + m = vm_page_grab(upobj, i, + VM_ALLOC_NORMAL | VM_ALLOC_RETRY | VM_ALLOC_WIRED); ma[i] = m; - /* - * Wire the page. - */ - m->wire_count++; - cnt.v_wire_count++; - vm_page_wakeup(m); vm_page_flag_clear(m, PG_ZERO); vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE); |