mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
2 changed files with 6 additions and 2 deletions
|
|
@ -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 a new issue