powerpc/book3s64/mm: Simplify the rcu callback for page table free
[linux-2.6-block.git] / arch / powerpc / include / asm / book3s / 64 / pgalloc.h
index 826171568192ed576f45b2c711eacb726c01ea51..ed313b8d3facdf11d5556dbe74e923f07e6c57de 100644 (file)
@@ -124,14 +124,14 @@ static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
 }
 
 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud,
-                                  unsigned long address)
+                                 unsigned long address)
 {
        /*
         * By now all the pud entries should be none entries. So go
         * ahead and flush the page walk cache
         */
        flush_tlb_pgtable(tlb, address);
-       pgtable_free_tlb(tlb, pud, PUD_CACHE_INDEX);
+       pgtable_free_tlb(tlb, pud, PUD_INDEX);
 }
 
 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr)
@@ -146,14 +146,14 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
 }
 
 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
-                                  unsigned long address)
+                                 unsigned long address)
 {
        /*
         * By now all the pud entries should be none entries. So go
         * ahead and flush the page walk cache
         */
        flush_tlb_pgtable(tlb, address);
-        return pgtable_free_tlb(tlb, pmd, PMD_CACHE_INDEX);
+       return pgtable_free_tlb(tlb, pmd, PMD_INDEX);
 }
 
 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd,
@@ -203,7 +203,7 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table,
         * ahead and flush the page walk cache
         */
        flush_tlb_pgtable(tlb, address);
-       pgtable_free_tlb(tlb, table, 0);
+       pgtable_free_tlb(tlb, table, PTE_INDEX);
 }
 
 #define check_pgt_cache()      do { } while (0)