OSDN Git Service

powerpc/mm/book3s/hash: Rename flush_tlb_pmd_range
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 7 Sep 2022 08:19:41 +0000 (13:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Sep 2022 08:35:52 +0000 (18:35 +1000)
This function does the hash page table update. Hence rename it to
indicate this better to avoid confusion with flush_pmd_tlb_range()

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
[mpe: Drop unnecessary extern]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220907081941.209501-1-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h
arch/powerpc/mm/book3s64/hash_pgtable.c
arch/powerpc/mm/book3s64/hash_tlb.c

index 8b762f2..fab8332 100644 (file)
@@ -112,13 +112,11 @@ static inline void hash__flush_tlb_kernel_range(unsigned long start,
 
 struct mmu_gather;
 extern void hash__tlb_flush(struct mmu_gather *tlb);
-void flush_tlb_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr);
 
 #ifdef CONFIG_PPC_64S_HASH_MMU
 /* Private function for use by PCI IO mapping code */
 extern void __flush_hash_table_range(unsigned long start, unsigned long end);
-extern void flush_tlb_pmd_range(struct mm_struct *mm, pmd_t *pmd,
-                               unsigned long addr);
+void flush_hash_table_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr);
 #else
 static inline void __flush_hash_table_range(unsigned long start, unsigned long end) { }
 #endif
index 2833200..747492e 100644 (file)
@@ -256,7 +256,7 @@ pmd_t hash__pmdp_collapse_flush(struct vm_area_struct *vma, unsigned long addres
         * the __collapse_huge_page_copy can result in copying
         * the old content.
         */
-       flush_tlb_pmd_range(vma->vm_mm, &pmd, address);
+       flush_hash_table_pmd_range(vma->vm_mm, &pmd, address);
        return pmd;
 }
 
index eb0bcca..a64ea0a 100644 (file)
@@ -221,7 +221,7 @@ void __flush_hash_table_range(unsigned long start, unsigned long end)
        local_irq_restore(flags);
 }
 
-void flush_tlb_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr)
+void flush_hash_table_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr)
 {
        pte_t *pte;
        pte_t *start_pte;