Skip to content

Commit 4cf5892

Browse files
joelagneltorvalds
authored andcommitted
mm: treewide: remove unused address argument from pte_alloc functions
Patch series "Add support for fast mremap". This series speeds up the mremap(2) syscall by copying page tables at the PMD level even for non-THP systems. There is concern that the extra 'address' argument that mremap passes to pte_alloc may do something subtle architecture related in the future that may make the scheme not work. Also we find that there is no point in passing the 'address' to pte_alloc since its unused. This patch therefore removes this argument tree-wide resulting in a nice negative diff as well. Also ensuring along the way that the enabled architectures do not do anything funky with the 'address' argument that goes unnoticed by the optimization. Build and boot tested on x86-64. Build tested on arm64. The config enablement patch for arm64 will be posted in the future after more testing. The changes were obtained by applying the following Coccinelle script. (thanks Julia for answering all Coccinelle questions!). Following fix ups were done manually: * Removal of address argument from pte_fragment_alloc * Removal of pte_alloc_one_fast definitions from m68k and microblaze. // Options: --include-headers --no-includes // Note: I split the 'identifier fn' line, so if you are manually // running it, please unsplit it so it runs for you. virtual patch @pte_alloc_func_def depends on patch exists@ identifier E2; identifier fn =~ "^(__pte_alloc|pte_alloc_one|pte_alloc|__pte_alloc_kernel|pte_alloc_one_kernel)$"; type T2; @@ fn(... - , T2 E2 ) { ... } @pte_alloc_func_proto_noarg depends on patch exists@ type T1, T2, T3, T4; identifier fn =~ "^(__pte_alloc|pte_alloc_one|pte_alloc|__pte_alloc_kernel|pte_alloc_one_kernel)$"; @@ ( - T3 fn(T1, T2); + T3 fn(T1); | - T3 fn(T1, T2, T4); + T3 fn(T1, T2); ) @pte_alloc_func_proto depends on patch exists@ identifier E1, E2, E4; type T1, T2, T3, T4; identifier fn =~ "^(__pte_alloc|pte_alloc_one|pte_alloc|__pte_alloc_kernel|pte_alloc_one_kernel)$"; @@ ( - T3 fn(T1 E1, T2 E2); + T3 fn(T1 E1); | - T3 fn(T1 E1, T2 E2, T4 E4); + T3 fn(T1 E1, T2 E2); ) @pte_alloc_func_call depends on patch exists@ expression E2; identifier fn =~ "^(__pte_alloc|pte_alloc_one|pte_alloc|__pte_alloc_kernel|pte_alloc_one_kernel)$"; @@ fn(... -, E2 ) @pte_alloc_macro depends on patch exists@ identifier fn =~ "^(__pte_alloc|pte_alloc_one|pte_alloc|__pte_alloc_kernel|pte_alloc_one_kernel)$"; identifier a, b, c; expression e; position p; @@ ( - #define fn(a, b, c) e + #define fn(a, b) e | - #define fn(a, b) e + #define fn(a) e ) Link: http://lkml.kernel.org/r/20181108181201.88826-2-joelaf@google.com Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Suggested-by: Kirill A. Shutemov <kirill@shutemov.name> Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Cc: Michal Hocko <mhocko@kernel.org> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Kirill A. Shutemov <kirill@shutemov.name> Cc: William Kucharski <william.kucharski@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ff1522b commit 4cf5892

File tree

44 files changed

+101
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+101
-151
lines changed

arch/alpha/include/asm/pgalloc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pmd_free(struct mm_struct *mm, pmd_t *pmd)
5252
}
5353

5454
static inline pte_t *
55-
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
55+
pte_alloc_one_kernel(struct mm_struct *mm)
5656
{
5757
pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO);
5858
return pte;
@@ -65,9 +65,9 @@ pte_free_kernel(struct mm_struct *mm, pte_t *pte)
6565
}
6666

6767
static inline pgtable_t
68-
pte_alloc_one(struct mm_struct *mm, unsigned long address)
68+
pte_alloc_one(struct mm_struct *mm)
6969
{
70-
pte_t *pte = pte_alloc_one_kernel(mm, address);
70+
pte_t *pte = pte_alloc_one_kernel(mm);
7171
struct page *page;
7272

7373
if (!pte)

arch/arc/include/asm/pgalloc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ static inline int __get_order_pte(void)
9090
return get_order(PTRS_PER_PTE * sizeof(pte_t));
9191
}
9292

93-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
94-
unsigned long address)
93+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
9594
{
9695
pte_t *pte;
9796

@@ -102,7 +101,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
102101
}
103102

104103
static inline pgtable_t
105-
pte_alloc_one(struct mm_struct *mm, unsigned long address)
104+
pte_alloc_one(struct mm_struct *mm)
106105
{
107106
pgtable_t pte_pg;
108107
struct page *page;

arch/arm/include/asm/pgalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline void clean_pte_table(pte_t *pte)
8181
* +------------+
8282
*/
8383
static inline pte_t *
84-
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr)
84+
pte_alloc_one_kernel(struct mm_struct *mm)
8585
{
8686
pte_t *pte;
8787

@@ -93,7 +93,7 @@ pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr)
9393
}
9494

9595
static inline pgtable_t
96-
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
96+
pte_alloc_one(struct mm_struct *mm)
9797
{
9898
struct page *pte;
9999

arch/arm64/include/asm/pgalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ extern pgd_t *pgd_alloc(struct mm_struct *mm);
9191
extern void pgd_free(struct mm_struct *mm, pgd_t *pgdp);
9292

9393
static inline pte_t *
94-
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr)
94+
pte_alloc_one_kernel(struct mm_struct *mm)
9595
{
9696
return (pte_t *)__get_free_page(PGALLOC_GFP);
9797
}
9898

9999
static inline pgtable_t
100-
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
100+
pte_alloc_one(struct mm_struct *mm)
101101
{
102102
struct page *pte;
103103

arch/hexagon/include/asm/pgalloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
5959
free_page((unsigned long) pgd);
6060
}
6161

62-
static inline struct page *pte_alloc_one(struct mm_struct *mm,
63-
unsigned long address)
62+
static inline struct page *pte_alloc_one(struct mm_struct *mm)
6463
{
6564
struct page *pte;
6665

@@ -75,8 +74,7 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm,
7574
}
7675

7776
/* _kernel variant gets to use a different allocator */
78-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
79-
unsigned long address)
77+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
8078
{
8179
gfp_t flags = GFP_KERNEL | __GFP_ZERO;
8280
return (pte_t *) __get_free_page(flags);

arch/ia64/include/asm/pgalloc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pmd_populate_kernel(struct mm_struct *mm, pmd_t * pmd_entry, pte_t * pte)
8383
pmd_val(*pmd_entry) = __pa(pte);
8484
}
8585

86-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr)
86+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
8787
{
8888
struct page *page;
8989
void *pg;
@@ -99,8 +99,7 @@ static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr)
9999
return page;
100100
}
101101

102-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
103-
unsigned long addr)
102+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
104103
{
105104
return quicklist_alloc(0, GFP_KERNEL, NULL);
106105
}

arch/m68k/include/asm/mcf_pgalloc.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ extern inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
1212

1313
extern const char bad_pmd_string[];
1414

15-
extern inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
16-
unsigned long address)
15+
extern inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
1716
{
1817
unsigned long page = __get_free_page(GFP_DMA);
1918

@@ -32,8 +31,6 @@ extern inline pmd_t *pmd_alloc_kernel(pgd_t *pgd, unsigned long address)
3231
#define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); })
3332
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
3433

35-
#define pte_alloc_one_fast(mm, addr) pte_alloc_one(mm, addr)
36-
3734
#define pmd_populate(mm, pmd, page) (pmd_val(*pmd) = \
3835
(unsigned long)(page_address(page)))
3936

@@ -50,8 +47,7 @@ static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page,
5047

5148
#define __pmd_free_tlb(tlb, pmd, address) do { } while (0)
5249

53-
static inline struct page *pte_alloc_one(struct mm_struct *mm,
54-
unsigned long address)
50+
static inline struct page *pte_alloc_one(struct mm_struct *mm)
5551
{
5652
struct page *page = alloc_pages(GFP_DMA, 0);
5753
pte_t *pte;

arch/m68k/include/asm/motorola_pgalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extern pmd_t *get_pointer_table(void);
99
extern int free_pointer_table(pmd_t *);
1010

11-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
11+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
1212
{
1313
pte_t *pte;
1414

@@ -28,7 +28,7 @@ static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
2828
free_page((unsigned long) pte);
2929
}
3030

31-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address)
31+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
3232
{
3333
struct page *page;
3434
pte_t *pte;

arch/m68k/include/asm/sun3_pgalloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ do { \
3535
tlb_remove_page((tlb), pte); \
3636
} while (0)
3737

38-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
39-
unsigned long address)
38+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
4039
{
4140
unsigned long page = __get_free_page(GFP_KERNEL);
4241

@@ -47,8 +46,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
4746
return (pte_t *) (page);
4847
}
4948

50-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
51-
unsigned long address)
49+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
5250
{
5351
struct page *page = alloc_pages(GFP_KERNEL, 0);
5452

arch/microblaze/include/asm/pgalloc.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ static inline void free_pgd_slow(pgd_t *pgd)
108108
#define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); })
109109
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
110110

111-
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr);
111+
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm);
112112

113-
static inline struct page *pte_alloc_one(struct mm_struct *mm,
114-
unsigned long address)
113+
static inline struct page *pte_alloc_one(struct mm_struct *mm)
115114
{
116115
struct page *ptepage;
117116

@@ -132,20 +131,6 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm,
132131
return ptepage;
133132
}
134133

135-
static inline pte_t *pte_alloc_one_fast(struct mm_struct *mm,
136-
unsigned long address)
137-
{
138-
unsigned long *ret;
139-
140-
ret = pte_quicklist;
141-
if (ret != NULL) {
142-
pte_quicklist = (unsigned long *)(*ret);
143-
ret[0] = 0;
144-
pgtable_cache_size--;
145-
}
146-
return (pte_t *)ret;
147-
}
148-
149134
static inline void pte_free_fast(pte_t *pte)
150135
{
151136
*(unsigned long **)pte = pte_quicklist;

arch/microblaze/mm/pgtable.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ unsigned long iopa(unsigned long addr)
235235
return pa;
236236
}
237237

238-
__ref pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
239-
unsigned long address)
238+
__ref pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
240239
{
241240
pte_t *pte;
242241
if (mem_init_done) {

arch/mips/include/asm/pgalloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
5050
free_pages((unsigned long)pgd, PGD_ORDER);
5151
}
5252

53-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
54-
unsigned long address)
53+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
5554
{
5655
return (pte_t *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, PTE_ORDER);
5756
}
5857

59-
static inline struct page *pte_alloc_one(struct mm_struct *mm,
60-
unsigned long address)
58+
static inline struct page *pte_alloc_one(struct mm_struct *mm)
6159
{
6260
struct page *pte;
6361

arch/nds32/include/asm/pgalloc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ extern void pgd_free(struct mm_struct *mm, pgd_t * pgd);
2222

2323
#define check_pgt_cache() do { } while (0)
2424

25-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
26-
unsigned long addr)
25+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
2726
{
2827
pte_t *pte;
2928

@@ -34,7 +33,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
3433
return pte;
3534
}
3635

37-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr)
36+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
3837
{
3938
pgtable_t pte;
4039

arch/nios2/include/asm/pgalloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
3737
free_pages((unsigned long)pgd, PGD_ORDER);
3838
}
3939

40-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
41-
unsigned long address)
40+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
4241
{
4342
pte_t *pte;
4443

@@ -47,8 +46,7 @@ static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
4746
return pte;
4847
}
4948

50-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
51-
unsigned long address)
49+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
5250
{
5351
struct page *pte;
5452

arch/openrisc/include/asm/pgalloc.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
7070
free_page((unsigned long)pgd);
7171
}
7272

73-
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);
73+
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm);
7474

75-
static inline struct page *pte_alloc_one(struct mm_struct *mm,
76-
unsigned long address)
75+
static inline struct page *pte_alloc_one(struct mm_struct *mm)
7776
{
7877
struct page *pte;
7978
pte = alloc_pages(GFP_KERNEL, 0);

arch/openrisc/mm/ioremap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ EXPORT_SYMBOL(iounmap);
118118
* the memblock infrastructure.
119119
*/
120120

121-
pte_t __ref *pte_alloc_one_kernel(struct mm_struct *mm,
122-
unsigned long address)
121+
pte_t __ref *pte_alloc_one_kernel(struct mm_struct *mm)
123122
{
124123
pte_t *pte;
125124

arch/parisc/include/asm/pgalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte)
122122
#define pmd_pgtable(pmd) pmd_page(pmd)
123123

124124
static inline pgtable_t
125-
pte_alloc_one(struct mm_struct *mm, unsigned long address)
125+
pte_alloc_one(struct mm_struct *mm)
126126
{
127127
struct page *page = alloc_page(GFP_KERNEL|__GFP_ZERO);
128128
if (!page)
@@ -135,7 +135,7 @@ pte_alloc_one(struct mm_struct *mm, unsigned long address)
135135
}
136136

137137
static inline pte_t *
138-
pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr)
138+
pte_alloc_one_kernel(struct mm_struct *mm)
139139
{
140140
pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO);
141141
return pte;

arch/powerpc/include/asm/book3s/32/pgalloc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp,
6161

6262
#define pmd_pgtable(pmd) ((pgtable_t)pmd_page_vaddr(pmd))
6363

64-
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr);
65-
extern pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr);
64+
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm);
65+
extern pgtable_t pte_alloc_one(struct mm_struct *mm);
6666
void pte_frag_destroy(void *pte_frag);
67-
pte_t *pte_fragment_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel);
67+
pte_t *pte_fragment_alloc(struct mm_struct *mm, int kernel);
6868
void pte_fragment_free(unsigned long *table, int kernel);
6969

7070
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)

arch/powerpc/include/asm/book3s/64/pgalloc.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern struct vmemmap_backing *vmemmap_list;
3939
extern struct kmem_cache *pgtable_cache[];
4040
#define PGT_CACHE(shift) pgtable_cache[shift]
4141

42-
extern pte_t *pte_fragment_alloc(struct mm_struct *, unsigned long, int);
42+
extern pte_t *pte_fragment_alloc(struct mm_struct *, int);
4343
extern pmd_t *pmd_fragment_alloc(struct mm_struct *, unsigned long);
4444
extern void pte_fragment_free(unsigned long *, int);
4545
extern void pmd_fragment_free(unsigned long *);
@@ -190,16 +190,14 @@ static inline pgtable_t pmd_pgtable(pmd_t pmd)
190190
return (pgtable_t)pmd_page_vaddr(pmd);
191191
}
192192

193-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
194-
unsigned long address)
193+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
195194
{
196-
return (pte_t *)pte_fragment_alloc(mm, address, 1);
195+
return (pte_t *)pte_fragment_alloc(mm, 1);
197196
}
198197

199-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
200-
unsigned long address)
198+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
201199
{
202-
return (pgtable_t)pte_fragment_alloc(mm, address, 0);
200+
return (pgtable_t)pte_fragment_alloc(mm, 0);
203201
}
204202

205203
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)

arch/powerpc/include/asm/nohash/32/pgalloc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp,
7979
#define pmd_pgtable(pmd) ((pgtable_t)pmd_page_vaddr(pmd))
8080
#endif
8181

82-
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr);
83-
extern pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long addr);
82+
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm);
83+
extern pgtable_t pte_alloc_one(struct mm_struct *mm);
8484
void pte_frag_destroy(void *pte_frag);
85-
pte_t *pte_fragment_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel);
85+
pte_t *pte_fragment_alloc(struct mm_struct *mm, int kernel);
8686
void pte_fragment_free(unsigned long *table, int kernel);
8787

8888
static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)

arch/powerpc/include/asm/nohash/64/pgalloc.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
9393
}
9494

9595

96-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
97-
unsigned long address)
96+
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm)
9897
{
9998
return (pte_t *)__get_free_page(GFP_KERNEL | __GFP_ZERO);
10099
}
101100

102-
static inline pgtable_t pte_alloc_one(struct mm_struct *mm,
103-
unsigned long address)
101+
static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
104102
{
105103
struct page *page;
106104
pte_t *pte;

0 commit comments

Comments
 (0)