summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2011-06-23 21:55:59 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2011-06-23 21:55:59 +0000
commit97de893e67591f901a2727fc0ff531382168da4a (patch)
tree04f52f4b9516e9997a59283f9fa5848a4461ad2d /sys/uvm
parent258371206779554546356c50124b520a32f3b126 (diff)
Check for the correct flag when checking to see if the page is part of an aobj.
This is no function change since aobjs never actually hit this path. (also it is my bug from a while ago). ok ariane@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c
index bbde5286a1c..2da2511c569 100644
--- a/sys/uvm/uvm_page.c
+++ b/sys/uvm/uvm_page.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.c,v 1.109 2011/06/23 21:50:26 oga Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.110 2011/06/23 21:55:58 oga Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
@@ -1152,7 +1152,7 @@ uvm_page_unbusy(struct vm_page **pgs, int npgs)
uvm_lock_pageq();
pmap_page_protect(pg, VM_PROT_NONE);
/* XXX won't happen right now */
- if (pg->pg_flags & PQ_ANON)
+ if (pg->pg_flags & PQ_AOBJ)
uao_dropswap(uobj,
pg->offset >> PAGE_SHIFT);
uvm_pagefree(pg);