powerpc/pmap: Replace a logical TAILQ_FOREACH_SAFE with the real thing
No functional change, just cleanup.
This commit is contained in:
parent
90be917249
commit
abc00e5fb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359445
@ -1597,9 +1597,7 @@ mmu_booke_remove_all(mmu_t mmu, vm_page_t m)
|
||||
uint8_t hold_flag;
|
||||
|
||||
rw_wlock(&pvh_global_lock);
|
||||
for (pv = TAILQ_FIRST(&m->md.pv_list); pv != NULL; pv = pvn) {
|
||||
pvn = TAILQ_NEXT(pv, pv_link);
|
||||
|
||||
TAILQ_FOREACH_SAFE(pv, &m->md.pv_list, pv_link, pvn) {
|
||||
PMAP_LOCK(pv->pv_pmap);
|
||||
hold_flag = PTBL_HOLD_FLAG(pv->pv_pmap);
|
||||
pte_remove(mmu, pv->pv_pmap, pv->pv_va, hold_flag);
|
||||
|
Loading…
Reference in New Issue
Block a user