Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/mm: Rename pte fragment functions

We rename the alloc and get_from_cache to indicate they operate on pte
fragments. In later patch we will add pmd fragment support.

No functional change in this patch.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Aneesh Kumar K.V and committed by
Michael Ellerman
8ce74cff af60a4cf

+5 -4
+5 -4
arch/powerpc/mm/pgtable_64.c
··· 314 314 } 315 315 316 316 #ifdef CONFIG_PPC_64K_PAGES 317 - static pte_t *get_from_cache(struct mm_struct *mm) 317 + static pte_t *get_pte_from_cache(struct mm_struct *mm) 318 318 { 319 319 void *pte_frag, *ret; 320 320 ··· 333 333 return (pte_t *)ret; 334 334 } 335 335 336 - static pte_t *__alloc_for_cache(struct mm_struct *mm, int kernel) 336 + static pte_t *__alloc_for_ptecache(struct mm_struct *mm, int kernel) 337 337 { 338 338 void *ret = NULL; 339 339 struct page *page; ··· 372 372 { 373 373 pte_t *pte; 374 374 375 - pte = get_from_cache(mm); 375 + pte = get_pte_from_cache(mm); 376 376 if (pte) 377 377 return pte; 378 378 379 - return __alloc_for_cache(mm, kernel); 379 + return __alloc_for_ptecache(mm, kernel); 380 380 } 381 + 381 382 #endif /* CONFIG_PPC_64K_PAGES */ 382 383 383 384 void pte_fragment_free(unsigned long *table, int kernel)