HomeFreeBSD

ttm_vm_page_alloc: use vm_page_alloc for pages without dma32 restriction

Description

ttm_vm_page_alloc: use vm_page_alloc for pages without dma32 restriction

This change re-organizes code a little bit to extract common pieces
of ttm_alloc_new_pages() and ttm_get_pages() into dedicated functions.
Also, for requests without address restrictions regular vm_page_alloc()
is used.
Lastly, when vm_page_alloc_contig() fails we call VM_WAIT before calling
vm_pageout_grow_cache() to ensure that there is enough free pages at all.

Reviewed by: kib
MFC after: 15 days

Details

Provenance
avgAuthored on
Reviewer
kib
Parents
rS284415: Fix script syntax
Branches
Unknown
Tags
Unknown