diff --git a/mm/hugetlb.c b/mm/hugetlb.c index cc5be788a39f..9519f3f6c1da 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2404,7 +2404,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma, set_huge_pte_at(mm, address, ptep, make_huge_pte(vma, new_page, 1)); page_remove_rmap(old_page); - hugepage_add_anon_rmap(new_page, vma, address); + hugepage_add_new_anon_rmap(new_page, vma, address); /* Make the old page be freed below */ new_page = old_page; mmu_notifier_invalidate_range_end(mm,