HomeFreeBSD

LinuxKPI: replace vtophys+PHYS_TO_VM_PAGE with virt_to_page

Description

LinuxKPI: replace vtophys+PHYS_TO_VM_PAGE with virt_to_page

Rather than using the FreeBSD internal calls vtophys() and
PHYS_TO_VM_PAGE() use the already existing LinuxKPI abstraction for
this called virt_to_page(). This reduces the amount of compat code
to maintain and will allow further work on struct [vm_]page.

This should be a NOP.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41257

Details

Provenance
bzAuthored on Jul 31 2023, 5:28 AM
Reviewer
markj
Differential Revision
D41257: LinuxKPI: replace vtophys+PHYS_TO_VM_PAGE with virt_to_page
Parents
rGd1ea07642c47: LinuxKPI: cleanup internal calls to VM_PAGE_TO_PHYS
Branches
Unknown
Tags
Unknown