HomeFreeBSD

Prefer the use of vm_page_domain() to vm_phys_domain().

Description

Prefer the use of vm_page_domain() to vm_phys_domain().

When we already have the vm page in hand, use vm_page_domain() instead
of vm_phys_domain(). The former has a trivial constant-time
implementation whereas the latter iterates over the mem_affinity array.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D28005

Details

Provenance
alcAuthored on Jan 10 2021, 8:51 AM
Reviewer
kib
Differential Revision
D28005: Prefer the use of vm_page_domain() to vm_phys_domain()
Parents
rG0f0379fa5581: hid: Add recently imported drivers to NOTES
Branches
Unknown
Tags
Unknown