summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-24 06:04:52 +0000
committerdillon <dillon@FreeBSD.org>1999-01-24 06:04:52 +0000
commita4c067a4598ea12fc0079892fe4b6695efdd39c0 (patch)
tree6384be4a4ca9965fe123e445cdfe4967e00c2c08 /sys/vm/vm_map.c
parent6f8753800cd94485b29ccd7a74ddc331cb3b9902 (diff)
downloadFreeBSD-src-a4c067a4598ea12fc0079892fe4b6695efdd39c0.zip
FreeBSD-src-a4c067a4598ea12fc0079892fe4b6695efdd39c0.tar.gz
Change all manual settings of vm_page_t->dirty = VM_PAGE_BITS_ALL
to use the vm_page_dirty() inline. The inline can thus do sanity checks ( or not ) over all cases.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 6878dd3..6a287b8 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.140 1999/01/21 08:29:10 dillon Exp $
+ * $Id: vm_map.c,v 1.141 1999/01/21 09:40:48 dillon Exp $
*/
/*
@@ -2225,7 +2225,7 @@ vm_map_split(entry)
vm_page_busy(m);
vm_page_protect(m, VM_PROT_NONE);
vm_page_rename(m, new_object, idx);
- /* page automatically made dirty by rename */
+ /* page automatically made dirty by rename and cache handled */
vm_page_busy(m);
}
@@ -3036,10 +3036,8 @@ vm_freeze_copyopts(object, froma, toa)
vm_page_protect(m_in, VM_PROT_NONE);
pmap_copy_page(VM_PAGE_TO_PHYS(m_in), VM_PAGE_TO_PHYS(m_out));
m_out->valid = m_in->valid;
- m_out->dirty = VM_PAGE_BITS_ALL;
-
+ vm_page_dirty(m_out);
vm_page_activate(m_out);
-
vm_page_wakeup(m_in);
}
vm_page_wakeup(m_out);
OpenPOWER on IntegriCloud