diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-04-15 22:00:47 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-04-15 22:00:47 +0000 |
commit | b0f1804f343d277b959857ea703186d7b043d4fb (patch) | |
tree | 14b79aeb8d3e6ccbc868b99eb5fba40072d8ac99 /sys | |
parent | c5ddad9464398d4ade3321a300801dc031b0f224 (diff) |
for uvm_pager_dropcluster in the PG_RELEASED case we specifically unbusy the
page so that um_anfree will free it for us.
uvm_anfree does a pmap_page_protect(, VM_PROT_NONE) just before it frees the
page, so we don't need to do it here ourselves.
ok ariane@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/uvm/uvm_pager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/uvm/uvm_pager.c b/sys/uvm/uvm_pager.c index 8247ad51aec..d146d819f91 100644 --- a/sys/uvm/uvm_pager.c +++ b/sys/uvm/uvm_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pager.c,v 1.58 2011/04/15 21:47:24 oga Exp $ */ +/* $OpenBSD: uvm_pager.c,v 1.59 2011/04/15 22:00:46 oga Exp $ */ /* $NetBSD: uvm_pager.c,v 1.36 2000/11/27 18:26:41 chs Exp $ */ /* @@ -747,7 +747,6 @@ uvm_pager_dropcluster(struct uvm_object *uobj, struct vm_page *pg, PG_BUSY); UVM_PAGE_OWN(ppsp[lcv], NULL); - pmap_page_protect(ppsp[lcv], VM_PROT_NONE); simple_unlock(&ppsp[lcv]->uanon->an_lock); /* kills anon and frees pg */ uvm_anfree(ppsp[lcv]->uanon); |