
hulk inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/IBPX2S -------------------------------- pte_mkhuge() is merged into arch_make_huge_pte() by commit 16785bd77431 ("mm: merge pte_mkhuge() call into arch_make_huge_pte()") except this function. Now we will remove pte_mkhuge() in next patch. Before that, replace the last pte_mkhuge(). Signed-off-by: Liu Shixin <liushixin2@huawei.com> --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a80b431a8f72..d0ff787b0938 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -7776,7 +7776,7 @@ static int __hugetlb_insert_pfn(struct mm_struct *mm, unsigned long addr, if (!(pgprot_val(prot) & PTE_RDONLY)) entry = huge_pte_mkwrite(entry); entry = pte_mkyoung(entry); - entry = pte_mkhuge(entry); + entry = arch_make_huge_pte(entry, huge_page_shift(h), VM_ACCESS_FLAGS); entry = pte_mkspecial(entry); ptl = huge_pte_lockptr(h, mm, ptep); -- 2.34.1