summaryrefslogtreecommitdiffstats
path: root/lib/libgssapi/gss_duplicate_name.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-07-01 11:28:42 +0000
committeravg <avg@FreeBSD.org>2015-07-01 11:28:42 +0000
commit3a7588b223c14c50f02b5602c35a8f73b6d93a2b (patch)
treed5f81deb987ca0d321d98ed8f88b870f906f3cff /lib/libgssapi/gss_duplicate_name.c
parentb6a3e408bb49c4347fd59202678375a7e7730e65 (diff)
downloadFreeBSD-src-3a7588b223c14c50f02b5602c35a8f73b6d93a2b.zip
FreeBSD-src-3a7588b223c14c50f02b5602c35a8f73b6d93a2b.tar.gz
MFC r278153,284416: ttm memory allocation improvements
If the vm_page_alloc_contig() failed in the ttm page allocators, do what other callers of vm_page_alloc_contig() do, retry after vm_pageout_grow_cache(). 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. Note: no MFC to stable/9 because it lacks vm_pageout_grow_cache().
Diffstat (limited to 'lib/libgssapi/gss_duplicate_name.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud