Lines Matching refs:wait
667 DEFINE_WAIT(wait); in khugepaged_alloc_sleep()
669 add_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
672 remove_wait_queue(&khugepaged_wait, &wait); in khugepaged_alloc_sleep()
733 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
736 if (!*wait) in khugepaged_prealloc_page()
739 *wait = false; in khugepaged_prealloc_page()
783 static struct page *khugepaged_alloc_hugepage(bool *wait) in khugepaged_alloc_hugepage() argument
791 if (!*wait) in khugepaged_alloc_hugepage()
794 *wait = false; in khugepaged_alloc_hugepage()
803 static bool khugepaged_prealloc_page(struct page **hpage, bool *wait) in khugepaged_prealloc_page() argument
806 *hpage = khugepaged_alloc_hugepage(wait); in khugepaged_prealloc_page()
1796 bool wait = true; in khugepaged_do_scan() local
1801 if (!khugepaged_prealloc_page(&hpage, &wait)) in khugepaged_do_scan()