mm/hugetlb/migration: use set_huge_pte_at instead of set_pte_at
Subsystems (2)
[email protected]
maintainerPATCH 62/108 mm/hugetlb/migration: use set_huge_pte_at instead of set_pte_at
From: "Aneesh Kumar K.V" <[email protected]>
Subject: mm/hugetlb/migration: use set_huge_pte_at instead of set_pte_at
Patch series "HugeTLB migration support for PPC64", v2.
This patch (of 9):
The right interface to use to set a hugetlb pte entry is set_huge_pte_at. Use that instead of set_pte_at.
Link http://lkml.kernel.org/r/1494926612-23928-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com open here
Signed-off-by Aneesh Kumar K.V <[email protected]>
Reviewed-by Naoya Horiguchi <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Mike Kravetz <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/migrate.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-hugetlb-migration-use-set_huge_pte_at-instead-of-set_pte_at +1 -4
@@ -227,25 +227,26 @@ static bool remove_migration_pte(structif (is_write_migration_entry (entry)) pte =maybe_mkwrite (pte, vma); +flush_dcache_page (new);#ifdef CONFIG_HUGETLB_PAGE if (PageHuge (new)) { pte =pte_mkhuge (pte); pte =arch_make_huge_pte (pte, vma, new,0 ); - } -#endif -flush_dcache_page (new); -set_pte_at (vma->vm_mm, pvmw.address, pvmw.pte, pte);