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:
parent
8b53c815ec
commit
fe04760439
@ -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--;
|
||||
|
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user