summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-03-28 04:53:28 +0000
committerdyson <dyson@FreeBSD.org>1996-03-28 04:53:28 +0000
commit903a66b4af563ab1d458c922fa4cbfc59d9cb018 (patch)
treee0dca2fd627513ccae987c257604750551675787 /sys/vm/vm_pageout.c
parentf766c05521db606311b3b7fe35b927377d6cf400 (diff)
downloadFreeBSD-src-903a66b4af563ab1d458c922fa4cbfc59d9cb018.zip
FreeBSD-src-903a66b4af563ab1d458c922fa4cbfc59d9cb018.tar.gz
VM performance improvements, and reorder some operations in VM fault
in anticipation of a fix in pmap that will allow the mlock system call to work without panicing the system.
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 6f44421..57ef433 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.67 1996/03/09 06:53:27 dyson Exp $
+ * $Id: vm_pageout.c,v 1.68 1996/03/11 06:11:43 hsu Exp $
*/
/*
@@ -608,8 +608,9 @@ rescan1:
if (m->dirty == 0) {
vm_page_test_dirty(m);
- } else if (m->dirty != 0)
+ } else if (m->dirty != 0) {
m->dirty = VM_PAGE_BITS_ALL;
+ }
if (m->valid == 0) {
vm_page_protect(m, VM_PROT_NONE);
vm_page_free(m);
@@ -729,6 +730,7 @@ rescan1:
vm_page_deactivate(m);
}
} else {
+ vm_page_protect(m, VM_PROT_NONE);
vm_page_deactivate(m);
--page_shortage;
}
OpenPOWER on IntegriCloud