summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1998-09-28 02:40:11 +0000
committerDavid Greenman <dg@FreeBSD.org>1998-09-28 02:40:11 +0000
commitce65e68c03baf5640081d008ee3f25fdef849941 (patch)
tree92fe6b4fe6640a3f712afbc981288621ad9055d8
parentac2143fc96a9b1bba12505d61b11bc02e9c53875 (diff)
Notes
-rw-r--r--sys/vm/vm_object.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 2f6c2c5a06e7..f419e2f51282 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.127 1998/08/24 08:39:37 dfr Exp $
+ * $Id: vm_object.c,v 1.128 1998/09/04 08:06:57 dfr Exp $
*/
/*
@@ -1323,7 +1323,8 @@ again:
if (all || ((start <= p->pindex) && (p->pindex < end))) {
if (p->wire_count != 0) {
vm_page_protect(p, VM_PROT_NONE);
- p->valid = 0;
+ if (!clean_only)
+ p->valid = 0;
continue;
}
@@ -1351,8 +1352,9 @@ again:
if ((p = vm_page_lookup(object, start)) != 0) {
if (p->wire_count != 0) {
- p->valid = 0;
vm_page_protect(p, VM_PROT_NONE);
+ if (!clean_only)
+ p->valid = 0;
start += 1;
size -= 1;
continue;