summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_aobj.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2009-06-06 17:46:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2009-06-06 17:46:45 +0000
commite4d12862f7f76c8ed57d8579930e566bce6a2228 (patch)
tree6a9bbe4cfc4cb5308b9057ef50e02783db8835e5 /sys/uvm/uvm_aobj.c
parente6e2df708cbe8eb2e54204b7234a3d338d16471c (diff)
Since all callers of uvm_pagedeactivate did pmap_page_protect(.., VM_PROT_NONE)
just move that into uvm_pagedeactivate. oga@ ok
Diffstat (limited to 'sys/uvm/uvm_aobj.c')
-rw-r--r--sys/uvm/uvm_aobj.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/uvm/uvm_aobj.c b/sys/uvm/uvm_aobj.c
index 9726d616819..b651338c28a 100644
--- a/sys/uvm/uvm_aobj.c
+++ b/sys/uvm/uvm_aobj.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_aobj.c,v 1.41 2009/06/02 23:00:19 oga Exp $ */
+/* $OpenBSD: uvm_aobj.c,v 1.42 2009/06/06 17:46:44 art Exp $ */
/* $NetBSD: uvm_aobj.c,v 1.39 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -790,10 +790,8 @@ uao_flush(struct uvm_object *uobj, voff_t start, voff_t stop, int flags)
continue;
uvm_lock_pageq();
- /* zap all mappings for the page. */
- pmap_page_protect(pp, VM_PROT_NONE);
- /* ...and deactivate the page. */
+ /* Deactivate the page. */
uvm_pagedeactivate(pp);
uvm_unlock_pageq();
@@ -1352,9 +1350,6 @@ uao_pagein_page(struct uvm_aobj *aobj, int pageidx)
* deactivate the page (to put it on a page queue).
*/
pmap_clear_reference(pg);
-#ifndef UBC
- pmap_page_protect(pg, VM_PROT_NONE);
-#endif
uvm_lock_pageq();
uvm_pagedeactivate(pg);
uvm_unlock_pageq();