summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1998-10-21 11:38:14 +0000
committerdg <dg@FreeBSD.org>1998-10-21 11:38:14 +0000
commit3bb5ec13b622f418d6224bd7c4698ea77782841a (patch)
treeba57ce5cf4396f2be04a30e59f77b27921d46b5f /sys/amd64
parent98c5904a24278eb1aab04769afd17a38edfe46e1 (diff)
downloadFreeBSD-src-3bb5ec13b622f418d6224bd7c4698ea77782841a.zip
FreeBSD-src-3bb5ec13b622f418d6224bd7c4698ea77782841a.tar.gz
Decrement the now unused page table page's wire_count prior to freeing it.
It will soon be required that pages have a zero wire_count when being freed.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 2be04c8..7f49409 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.208 1998/09/04 13:10:34 ache Exp $
+ * $Id: pmap.c,v 1.209 1998/09/06 23:04:20 tegge Exp $
*/
/*
@@ -1328,6 +1328,8 @@ pmap_release_free_page(pmap, p)
if (pmap->pm_ptphint && (pmap->pm_ptphint->pindex == p->pindex))
pmap->pm_ptphint = NULL;
+ p->wire_count--;
+ cnt.v_wire_count--;
vm_page_free_zero(p);
return 1;
}
OpenPOWER on IntegriCloud