HomeFreeBSD

Introduce vm_page_grab_pages(), which is intended to replace loops calling

Description

Introduce vm_page_grab_pages(), which is intended to replace loops calling
vm_page_grab() on consecutive page indices. Besides simplifying the code
in the caller, vm_page_grab_pages() allows for batching optimizations.
For example, the current implementation replaces calls to vm_page_lookup()
on consecutive page indices by cheaper calls to vm_page_next().

Reviewed by: kib, markj
Tested by: pho (an earlier version)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D11926

Details

Provenance
alcAuthored on
Reviewer
kib
Differential Revision
D11926: Add vm_page_grab_pages()
Parents
rS322295: Update pl310 node in Armada 38x DTS to match the one used in Linux
Branches
Unknown
Tags
Unknown