Fix an accounting problem when prefaulting 4M pages.
PR: kern/11948
This commit is contained in:
parent
efdb8e1c5a
commit
56a5a76bf8
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.236 1999/05/28 05:38:56 alc Exp $
|
||||
* $Id: pmap.c,v 1.237 1999/06/01 18:19:44 jlemon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -2655,7 +2655,7 @@ pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr)
|
||||
if (srcptepaddr & PG_PS) {
|
||||
if (dst_pmap->pm_pdir[ptepindex] == 0) {
|
||||
dst_pmap->pm_pdir[ptepindex] = (pd_entry_t) srcptepaddr;
|
||||
dst_pmap->pm_stats.resident_count += NBPDR;
|
||||
dst_pmap->pm_stats.resident_count += NBPDR / PAGE_SIZE;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||
* $Id: pmap.c,v 1.236 1999/05/28 05:38:56 alc Exp $
|
||||
* $Id: pmap.c,v 1.237 1999/06/01 18:19:44 jlemon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -2655,7 +2655,7 @@ pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr)
|
||||
if (srcptepaddr & PG_PS) {
|
||||
if (dst_pmap->pm_pdir[ptepindex] == 0) {
|
||||
dst_pmap->pm_pdir[ptepindex] = (pd_entry_t) srcptepaddr;
|
||||
dst_pmap->pm_stats.resident_count += NBPDR;
|
||||
dst_pmap->pm_stats.resident_count += NBPDR / PAGE_SIZE;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user