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

(cherry picked from commit dcb0c54968db10d3c7619f16c4bcfa9284d50ea2)

Details

Provenance
bzAuthored on Jul 31 2023, 5:28 AM
Parents
rGb4e06954f55d: LinuxKPI: cleanup internal calls to VM_PAGE_TO_PHYS
Branches
Unknown
Tags
Unknown