diff options
Diffstat (limited to 'include/asm-generic/pgalloc.h')
-rw-r--r-- | include/asm-generic/pgalloc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-generic/pgalloc.h b/include/asm-generic/pgalloc.h index 6f8cc06ee44e..73f7421413cb 100644 --- a/include/asm-generic/pgalloc.h +++ b/include/asm-generic/pgalloc.h | |||
@@ -49,7 +49,7 @@ static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) | |||
49 | * @mm: the mm_struct of the current context | 49 | * @mm: the mm_struct of the current context |
50 | * @gfp: GFP flags to use for the allocation | 50 | * @gfp: GFP flags to use for the allocation |
51 | * | 51 | * |
52 | * Allocates a page and runs the pgtable_page_ctor(). | 52 | * Allocates a page and runs the pgtable_pte_page_ctor(). |
53 | * | 53 | * |
54 | * This function is intended for architectures that need | 54 | * This function is intended for architectures that need |
55 | * anything beyond simple page allocation or must have custom GFP flags. | 55 | * anything beyond simple page allocation or must have custom GFP flags. |
@@ -63,7 +63,7 @@ static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) | |||
63 | pte = alloc_page(gfp); | 63 | pte = alloc_page(gfp); |
64 | if (!pte) | 64 | if (!pte) |
65 | return NULL; | 65 | return NULL; |
66 | if (!pgtable_page_ctor(pte)) { | 66 | if (!pgtable_pte_page_ctor(pte)) { |
67 | __free_page(pte); | 67 | __free_page(pte); |
68 | return NULL; | 68 | return NULL; |
69 | } | 69 | } |
@@ -76,7 +76,7 @@ static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) | |||
76 | * pte_alloc_one - allocate a page for PTE-level user page table | 76 | * pte_alloc_one - allocate a page for PTE-level user page table |
77 | * @mm: the mm_struct of the current context | 77 | * @mm: the mm_struct of the current context |
78 | * | 78 | * |
79 | * Allocates a page and runs the pgtable_page_ctor(). | 79 | * Allocates a page and runs the pgtable_pte_page_ctor(). |
80 | * | 80 | * |
81 | * Return: `struct page` initialized as page table or %NULL on error | 81 | * Return: `struct page` initialized as page table or %NULL on error |
82 | */ | 82 | */ |
@@ -98,7 +98,7 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm) | |||
98 | */ | 98 | */ |
99 | static inline void pte_free(struct mm_struct *mm, struct page *pte_page) | 99 | static inline void pte_free(struct mm_struct *mm, struct page *pte_page) |
100 | { | 100 | { |
101 | pgtable_page_dtor(pte_page); | 101 | pgtable_pte_page_dtor(pte_page); |
102 | __free_page(pte_page); | 102 | __free_page(pte_page); |
103 | } | 103 | } |
104 | 104 | ||