Date: Mon, 30 Mar 2020 16:32:55 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359445 - head/sys/powerpc/booke Message-ID: <202003301632.02UGWtMd040670@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Mon Mar 30 16:32:55 2020 New Revision: 359445 URL: https://svnweb.freebsd.org/changeset/base/359445 Log: powerpc/pmap: Replace a logical TAILQ_FOREACH_SAFE with the real thing No functional change, just cleanup. Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Mon Mar 30 16:24:05 2020 (r359444) +++ head/sys/powerpc/booke/pmap.c Mon Mar 30 16:32:55 2020 (r359445) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003301632.02UGWtMd040670>