Lines Matching refs:old_page

2894 static int alloc_and_dissolve_huge_page(struct hstate *h, struct page *old_page,  in alloc_and_dissolve_huge_page()  argument
2898 int nid = page_to_nid(old_page); in alloc_and_dissolve_huge_page()
2916 if (!PageHuge(old_page)) { in alloc_and_dissolve_huge_page()
2921 } else if (page_count(old_page)) { in alloc_and_dissolve_huge_page()
2927 ret = isolate_hugetlb(old_page, list); in alloc_and_dissolve_huge_page()
2930 } else if (!HPageFreed(old_page)) { in alloc_and_dissolve_huge_page()
2947 remove_hugetlb_page(h, old_page, false); in alloc_and_dissolve_huge_page()
2960 update_and_free_page(h, old_page, false); in alloc_and_dissolve_huge_page()
5474 struct page *old_page, *new_page; in hugetlb_wp() local
5499 old_page = pte_page(pte); in hugetlb_wp()
5508 if (page_mapcount(old_page) == 1 && PageAnon(old_page)) { in hugetlb_wp()
5509 if (!PageAnonExclusive(old_page)) in hugetlb_wp()
5510 page_move_anon_rmap(old_page, vma); in hugetlb_wp()
5517 VM_BUG_ON_PAGE(PageAnon(old_page) && PageAnonExclusive(old_page), in hugetlb_wp()
5518 old_page); in hugetlb_wp()
5530 old_page != pagecache_page) in hugetlb_wp()
5533 get_page(old_page); in hugetlb_wp()
5555 put_page(old_page); in hugetlb_wp()
5570 unmap_ref_private(mm, vma, old_page, haddr); in hugetlb_wp()
5600 copy_user_huge_page(new_page, old_page, address, vma, in hugetlb_wp()
5620 page_remove_rmap(old_page, vma, true); in hugetlb_wp()
5626 new_page = old_page; in hugetlb_wp()
5635 if (new_page != old_page) in hugetlb_wp()
5639 put_page(old_page); in hugetlb_wp()