diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2016-04-29 09:26:17 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-05-11 07:53:50 -0400 |
commit | 74701d5947a6fb38ece37c1ff1e5a77c36ee7b9c (patch) | |
tree | 12c888032f9384580e7552f12800ce8f349ade3e /arch/powerpc/include/asm/nohash | |
parent | bcbe7f777eb396f9bbf4cb1cab3b206f50881191 (diff) |
powerpc/mm: Rename function to indicate we are allocating fragments
Only code cleanup. No functionality change.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/nohash')
-rw-r--r-- | arch/powerpc/include/asm/nohash/64/pgalloc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/nohash/64/pgalloc.h b/arch/powerpc/include/asm/nohash/64/pgalloc.h index 69ef28a81733..be0cce7f7d4e 100644 --- a/arch/powerpc/include/asm/nohash/64/pgalloc.h +++ b/arch/powerpc/include/asm/nohash/64/pgalloc.h | |||
@@ -164,8 +164,8 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, | |||
164 | 164 | ||
165 | #else /* if CONFIG_PPC_64K_PAGES */ | 165 | #else /* if CONFIG_PPC_64K_PAGES */ |
166 | 166 | ||
167 | extern pte_t *page_table_alloc(struct mm_struct *, unsigned long, int); | 167 | extern pte_t *pte_fragment_alloc(struct mm_struct *, unsigned long, int); |
168 | extern void page_table_free(struct mm_struct *, unsigned long *, int); | 168 | extern void pte_fragment_free(unsigned long *, int); |
169 | extern void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift); | 169 | extern void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift); |
170 | #ifdef CONFIG_SMP | 170 | #ifdef CONFIG_SMP |
171 | extern void __tlb_remove_table(void *_table); | 171 | extern void __tlb_remove_table(void *_table); |
@@ -193,23 +193,23 @@ static inline pgtable_t pmd_pgtable(pmd_t pmd) | |||
193 | static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, | 193 | static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, |
194 | unsigned long address) | 194 | unsigned long address) |
195 | { | 195 | { |
196 | return (pte_t *)page_table_alloc(mm, address, 1); | 196 | return (pte_t *)pte_fragment_alloc(mm, address, 1); |
197 | } | 197 | } |
198 | 198 | ||
199 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm, | 199 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm, |
200 | unsigned long address) | 200 | unsigned long address) |
201 | { | 201 | { |
202 | return (pgtable_t)page_table_alloc(mm, address, 0); | 202 | return (pgtable_t)pte_fragment_alloc(mm, address, 0); |
203 | } | 203 | } |
204 | 204 | ||
205 | static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) | 205 | static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) |
206 | { | 206 | { |
207 | page_table_free(mm, (unsigned long *)pte, 1); | 207 | pte_fragment_fre((unsigned long *)pte, 1); |
208 | } | 208 | } |
209 | 209 | ||
210 | static inline void pte_free(struct mm_struct *mm, pgtable_t ptepage) | 210 | static inline void pte_free(struct mm_struct *mm, pgtable_t ptepage) |
211 | { | 211 | { |
212 | page_table_free(mm, (unsigned long *)ptepage, 0); | 212 | pte_fragment_free((unsigned long *)ptepage, 0); |
213 | } | 213 | } |
214 | 214 | ||
215 | static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, | 215 | static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, |