o Simplify the ptphint test in pmap_release_free_page(). In other words,

make it just like the test in _pmap_unwire_pte_hold().
This commit is contained in:
Alan Cox 2002-08-18 02:13:50 +00:00
parent 8b53c815ec
commit fe04760439
2 changed files with 2 additions and 2 deletions

View File

@ -1293,7 +1293,7 @@ pmap_release_free_page(pmap_t pmap, vm_page_t p)
pmap_kremove((vm_offset_t) pmap->pm_pdir);
}
if (pmap->pm_ptphint && (pmap->pm_ptphint->pindex == p->pindex))
if (pmap->pm_ptphint == p)
pmap->pm_ptphint = NULL;
p->wire_count--;

View File

@ -1293,7 +1293,7 @@ pmap_release_free_page(pmap_t pmap, vm_page_t p)
pmap_kremove((vm_offset_t) pmap->pm_pdir);
}
if (pmap->pm_ptphint && (pmap->pm_ptphint->pindex == p->pindex))
if (pmap->pm_ptphint == p)
pmap->pm_ptphint = NULL;
p->wire_count--;