Lines Matching refs:wait
798 DEFINE_WAIT(wait); in khugepaged_alloc_sleep()
800 add_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
803 remove_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
864 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
867 if (!*wait) in khugepaged_prealloc_page()
870 *wait = false; in khugepaged_prealloc_page()
914 static struct page *khugepaged_alloc_hugepage(bool *wait) in khugepaged_alloc_hugepage() argument
922 if (!*wait) in khugepaged_alloc_hugepage()
925 *wait = false; in khugepaged_alloc_hugepage()
934 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
949 *hpage = khugepaged_alloc_hugepage(wait); in khugepaged_prealloc_page()
2267 bool wait = true; in khugepaged_do_scan() local
2274 if (!khugepaged_prealloc_page(&hpage, &wait)) in khugepaged_do_scan()