summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-24 02:29:26 +0000
committerdillon <dillon@FreeBSD.org>1999-01-24 02:29:26 +0000
commit90b1bd7723799ac3b8e0f928d7990991408c4324 (patch)
tree3bb1c2f284ac7b54d81f72b9f5f00f814bb4d4d5 /sys
parent555a2c90ad77af13fe1a71331a2259e60ce444da (diff)
downloadFreeBSD-src-90b1bd7723799ac3b8e0f928d7990991408c4324.zip
FreeBSD-src-90b1bd7723799ac3b8e0f928d7990991408c4324.tar.gz
Clear PG_MAPPED as well as PG_WRITEABLE when a page is moved to the
cache.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index db8dd08..5b50789 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91
- * $Id: vm_page.c,v 1.118 1999/01/21 10:01:49 dillon Exp $
+ * $Id: vm_page.c,v 1.119 1999/01/24 01:04:04 dillon Exp $
*/
/*
@@ -1542,11 +1542,11 @@ vm_page_cache(m)
/*
* Remove all pmaps and indicate that the page is not
- * writeable.
+ * writeable or mapped.
*/
vm_page_protect(m, VM_PROT_NONE);
- vm_page_flag_clear(m, PG_WRITEABLE);
+ vm_page_flag_clear(m, PG_WRITEABLE | PG_MAPPED);
#if !defined(MAX_PERF)
if (m->dirty != 0) {
panic("vm_page_cache: caching a dirty page, pindex: %d", m->pindex);
OpenPOWER on IntegriCloud