Commit 8ce74cff authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman

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: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent af60a4cf
...@@ -314,7 +314,7 @@ struct page *pmd_page(pmd_t pmd) ...@@ -314,7 +314,7 @@ struct page *pmd_page(pmd_t pmd)
} }
#ifdef CONFIG_PPC_64K_PAGES #ifdef CONFIG_PPC_64K_PAGES
static pte_t *get_from_cache(struct mm_struct *mm) static pte_t *get_pte_from_cache(struct mm_struct *mm)
{ {
void *pte_frag, *ret; void *pte_frag, *ret;
...@@ -333,7 +333,7 @@ static pte_t *get_from_cache(struct mm_struct *mm) ...@@ -333,7 +333,7 @@ static pte_t *get_from_cache(struct mm_struct *mm)
return (pte_t *)ret; return (pte_t *)ret;
} }
static pte_t *__alloc_for_cache(struct mm_struct *mm, int kernel) static pte_t *__alloc_for_ptecache(struct mm_struct *mm, int kernel)
{ {
void *ret = NULL; void *ret = NULL;
struct page *page; struct page *page;
...@@ -372,12 +372,13 @@ pte_t *pte_fragment_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel ...@@ -372,12 +372,13 @@ pte_t *pte_fragment_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel
{ {
pte_t *pte; pte_t *pte;
pte = get_from_cache(mm); pte = get_pte_from_cache(mm);
if (pte) if (pte)
return pte; return pte;
return __alloc_for_cache(mm, kernel); return __alloc_for_ptecache(mm, kernel);
} }
#endif /* CONFIG_PPC_64K_PAGES */ #endif /* CONFIG_PPC_64K_PAGES */
void pte_fragment_free(unsigned long *table, int kernel) void pte_fragment_free(unsigned long *table, int kernel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment