powerpc/mm: Use hugetlb flush functions
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 13 Jul 2016 09:36:38 +0000 (15:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:15:09 +0000 (11:15 +1000)
Use flush_hugetlb_page instead of flush_tlb_page when we clear flush the
pte.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hugetlb.h

index e2d9f4996e5ca030257c008449128283be2bad33..c5517f463ec79c9ddd0bde0df2dd346ea51fe44c 100644 (file)
@@ -147,7 +147,7 @@ static inline void huge_ptep_clear_flush(struct vm_area_struct *vma,
 {
        pte_t pte;
        pte = huge_ptep_get_and_clear(vma->vm_mm, addr, ptep);
-       flush_tlb_page(vma, addr);
+       flush_hugetlb_page(vma, addr);
 }
 
 static inline int huge_pte_none(pte_t pte)