In pmap_remove_all(), do not decrease pm_stats.wired_count if the mapping was

wired, as it's been done later in pmap_nuke_pv().

Submitted by:	Mark Tinguely
This commit is contained in:
Olivier Houchard 2010-09-12 20:46:32 +00:00
parent 57bfe0a9f8
commit 68710d7d2f

View File

@ -3158,8 +3158,6 @@ pmap_remove_all(vm_page_t m)
*ptep = 0;
PTE_SYNC_CURRENT(pv->pv_pmap, ptep);
pmap_free_l2_bucket(pv->pv_pmap, l2b, 1);
if (pv->pv_flags & PVF_WIRED)
pv->pv_pmap->pm_stats.wired_count--;
pv->pv_pmap->pm_stats.resident_count--;
flags |= pv->pv_flags;
}