1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

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.
This commit is contained in:
David Greenman 1998-10-21 11:38:14 +00:00
parent 964b832929
commit 9b827155f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40545
3 changed files with 9 additions and 3 deletions

View File

@ -43,7 +43,7 @@
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* from: i386 Id: pmap.c,v 1.193 1998/04/19 15:22:48 bde Exp
* with some ideas from NetBSD's alpha pmap
* $Id: pmap.c,v 1.9 1998/08/23 16:05:55 dfr Exp $
* $Id: pmap.c,v 1.10 1998/09/04 18:49:35 dfr Exp $
*/
/*
@ -1353,6 +1353,8 @@ pmap_release_free_page(pmap_t pmap, vm_page_t p)
}
#endif
p->wire_count--;
cnt.v_wire_count--;
vm_page_free_zero(p);
return 1;
}

View File

@ -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;
}

View File

@ -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;
}