Commit 8c445538 authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/hugetlb: use arch_make_huge_pte() in __hugetlb_insert_pfn()

hulk inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/IBPX2S



--------------------------------

pte_mkhuge() is merged into arch_make_huge_pte() by commit 16785bd7
("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: default avatarLiu Shixin <liushixin2@huawei.com>
parent 305d3014
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);