Lines Matching refs:zero_page
93 struct page *zero_page; in get_huge_zero_page() local
98 zero_page = alloc_pages((GFP_TRANSHUGE | __GFP_ZERO) & ~__GFP_MOVABLE, in get_huge_zero_page()
100 if (!zero_page) { in get_huge_zero_page()
106 if (cmpxchg(&huge_zero_page, NULL, zero_page)) { in get_huge_zero_page()
108 __free_pages(zero_page, compound_order(zero_page)); in get_huge_zero_page()
111 WRITE_ONCE(huge_zero_pfn, page_to_pfn(zero_page)); in get_huge_zero_page()
159 struct page *zero_page = xchg(&huge_zero_page, NULL); in shrink_huge_zero_page_scan() local
160 BUG_ON(zero_page == NULL); in shrink_huge_zero_page_scan()
162 __free_pages(zero_page, compound_order(zero_page)); in shrink_huge_zero_page_scan()
711 struct page *zero_page) in set_huge_zero_page() argument
716 entry = mk_pmd(zero_page, vma->vm_page_prot); in set_huge_zero_page()
741 struct page *zero_page; in do_huge_pmd_anonymous_page() local
746 zero_page = mm_get_huge_zero_page(vma->vm_mm); in do_huge_pmd_anonymous_page()
747 if (unlikely(!zero_page)) { in do_huge_pmd_anonymous_page()
766 haddr, vmf->pmd, zero_page); in do_huge_pmd_anonymous_page()