mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
When page table pages were removed from process address space, the
resident page stats were not being decremented. This mode corrects that problem.
This commit is contained in:
parent
9db4d54246
commit
f43467241e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16747
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.106 1996/06/18 01:22:06 bde Exp $
|
||||
* $Id: pmap.c,v 1.107 1996/06/25 00:39:21 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -612,6 +612,7 @@ pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m) {
|
||||
* unmap the page table page
|
||||
*/
|
||||
pmap->pm_pdir[m->pindex] = 0;
|
||||
--pmap->pm_stats.resident_count;
|
||||
/*
|
||||
* Do a pmap_update to make the invalidated mapping
|
||||
* take effect immediately.
|
||||
@ -747,6 +748,7 @@ pmap_release_free_page(pmap, p)
|
||||
* Remove the page table page from the processes address space.
|
||||
*/
|
||||
pde[p->pindex] = 0;
|
||||
--pmap->pm_stats.resident_count;
|
||||
|
||||
if (p->hold_count) {
|
||||
int *kvap;
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.106 1996/06/18 01:22:06 bde Exp $
|
||||
* $Id: pmap.c,v 1.107 1996/06/25 00:39:21 dyson Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -612,6 +612,7 @@ pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m) {
|
||||
* unmap the page table page
|
||||
*/
|
||||
pmap->pm_pdir[m->pindex] = 0;
|
||||
--pmap->pm_stats.resident_count;
|
||||
/*
|
||||
* Do a pmap_update to make the invalidated mapping
|
||||
* take effect immediately.
|
||||
@ -747,6 +748,7 @@ pmap_release_free_page(pmap, p)
|
||||
* Remove the page table page from the processes address space.
|
||||
*/
|
||||
pde[p->pindex] = 0;
|
||||
--pmap->pm_stats.resident_count;
|
||||
|
||||
if (p->hold_count) {
|
||||
int *kvap;
|
||||
|
Loading…
Reference in New Issue
Block a user