From 97de893e67591f901a2727fc0ff531382168da4a Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 23 Jun 2011 21:55:59 +0000 Subject: 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@ --- sys/uvm/uvm_page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/uvm') 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); -- cgit v1.2.3