HomeFreeBSD

arm64: Use page_to_pvh() when the vm_page_t is known

Description

arm64: Use page_to_pvh() when the vm_page_t is known

When support for a sparse pv_table was added, the implementation of
pa_to_pvh() changed from a simple constant-time calculation to iterating
over the array vm_phys_segs[]. To mitigate this issue, an alternative
function, page_to_pvh(), was introduced that still runs in constant time
but requires the vm_page_t to be known. However, three cases where the
vm_page_t is known were not converted to page_to_pvh(). This change
converts those three cases.

Reviewed by: kib, markj

(cherry picked from commit 6f6a166eaf5e59dedb761ea6152417433a841e3b)

Details

Provenance
alcAuthored on Jun 21 2021, 7:45 AM
markjCommitted on Aug 31 2021, 7:09 PM
Parents
rG4eb23465de9d: Explicitly link zfsd with libspl to avoid undefined references
Branches
Unknown
Tags
Unknown