diff options
| author | Alan Cox <alc@FreeBSD.org> | 2006-11-12 21:48:34 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2006-11-12 21:48:34 +0000 |
| commit | 44b8bd66f9d825f9ed451e40259ec6f0ec3a07d1 (patch) | |
| tree | c4a9c71fe86ec1dd8e45421082e59941e177807f /sys/vm | |
| parent | a9e889bc33c568beef4ce06e5c2765e9e876ebeb (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/vm_fault.c | 9 | ||||
| -rw-r--r-- | sys/vm/vm_kern.c | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index d62f3c769145..e5771995ee0a 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -841,9 +841,6 @@ readrest: } } if (prot & VM_PROT_WRITE) { - vm_page_lock_queues(); - vm_page_flag_set(fs.m, PG_WRITEABLE); - vm_page_unlock_queues(); vm_object_set_writeable_dirty(fs.object); /* @@ -1189,14 +1186,12 @@ vm_fault_copy_entry(dst_map, src_map, dst_entry, src_entry) * Enter it in the pmap... */ pmap_enter(dst_map->pmap, vaddr, dst_m, prot, FALSE); - VM_OBJECT_LOCK(dst_object); - vm_page_lock_queues(); - if ((prot & VM_PROT_WRITE) != 0) - vm_page_flag_set(dst_m, PG_WRITEABLE); /* * Mark it no longer busy, and put it on the active list. */ + VM_OBJECT_LOCK(dst_object); + vm_page_lock_queues(); vm_page_activate(dst_m); vm_page_unlock_queues(); vm_page_wakeup(dst_m); diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index c91dc483dd65..e3a8c12159d7 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); } |
