Skip to content

Commit 8ce74cf

Browse files
kvaneeshmpe
authored andcommitted
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>
1 parent af60a4c commit 8ce74cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

arch/powerpc/mm/pgtable_64.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ struct page *pmd_page(pmd_t pmd)
314314
}
315315

316316
#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)
318318
{
319319
void *pte_frag, *ret;
320320

@@ -333,7 +333,7 @@ static pte_t *get_from_cache(struct mm_struct *mm)
333333
return (pte_t *)ret;
334334
}
335335

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)
337337
{
338338
void *ret = NULL;
339339
struct page *page;
@@ -372,12 +372,13 @@ pte_t *pte_fragment_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel
372372
{
373373
pte_t *pte;
374374

375-
pte = get_from_cache(mm);
375+
pte = get_pte_from_cache(mm);
376376
if (pte)
377377
return pte;
378378

379-
return __alloc_for_cache(mm, kernel);
379+
return __alloc_for_ptecache(mm, kernel);
380380
}
381+
381382
#endif /* CONFIG_PPC_64K_PAGES */
382383

383384
void pte_fragment_free(unsigned long *table, int kernel)

0 commit comments

Comments
 (0)