aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-24 06:04:52 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-24 06:04:52 +0000
commit7dbf82dc13f7720f6c8376e9a3c006bed9d40f29 (patch)
tree19c166e4ea45928576f3f276a0aaf77414b7bae2 /sys/vm
parent84ef5a8f66bfc718e21c4209c919060385e18aeb (diff)
Notes
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.c6
-rw-r--r--sys/vm/vm_fault.c4
-rw-r--r--sys/vm/vm_map.c8
-rw-r--r--sys/vm/vm_pageout.c4
4 files changed, 10 insertions, 12 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 4a992d37d314..091a8c61f112 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -64,7 +64,7 @@
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
*
- * $Id: swap_pager.c,v 1.109 1999/01/21 09:33:07 dillon Exp $
+ * $Id: swap_pager.c,v 1.110 1999/01/24 02:32:14 dillon Exp $
*/
#include <sys/param.h>
@@ -1098,7 +1098,7 @@ swap_pager_putpages(object, m, count, sync, rtvals)
blk + j,
0
);
- mreq->dirty = VM_PAGE_BITS_ALL;
+ vm_page_dirty(mreq);
rtvals[i+j] = VM_PAGER_OK;
vm_page_flag_set(mreq, PG_SWAPINPROG);
@@ -1319,7 +1319,7 @@ swp_pager_async_iodone(bp)
* so it doesn't clog the inactive list,
* then finish the I/O.
*/
- m->dirty = VM_PAGE_BITS_ALL;
+ vm_page_dirty(m);
vm_page_activate(m);
vm_page_io_finish(m);
}
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index d44a2482ab5c..8692fffd73cf 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -66,7 +66,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_fault.c,v 1.96 1999/01/23 06:00:27 dillon Exp $
+ * $Id: vm_fault.c,v 1.97 1999/01/24 00:55:04 dillon Exp $
*/
/*
@@ -760,7 +760,7 @@ readrest:
* any swap backing since the page is now dirty.
*/
if (fault_flags & VM_FAULT_DIRTY) {
- fs.m->dirty = VM_PAGE_BITS_ALL;
+ vm_page_dirty(fs.m);
vm_pager_page_unswapped(fs.m);
}
}
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 6878dd33ad22..6a287b802928 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);
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index aa95a370db21..a220fd202a6e 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.132 1999/01/24 01:06:31 dillon Exp $
+ * $Id: vm_pageout.c,v 1.133 1999/01/24 01:33:22 dillon Exp $
*/
/*
@@ -784,7 +784,7 @@ rescan0:
if (m->dirty == 0) {
vm_page_test_dirty(m);
} else {
- m->dirty = VM_PAGE_BITS_ALL;
+ vm_page_dirty(m);
}
/*