History

mm/page_ext: remove pgdat_page_ext_init()

pgdat_page_ext_init() sets pgdat->node_page_ext to NULL only on FLATMEM. FLATMEM depends on !NUMA, so the pgdat is always the zero-initialized contig_page_data and the store has no effect. So remove the call site, the unused function and its declaration. No functional change.

Sang-Heon Jeon committed 3 months ago

Commit 0ddb8bb1 parent 34568003 files · +0 −15Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/page_ext.h+0−5
@@ -55,7 +55,6 @@ struct page_ext { · 54 unmodified lines
5555
5656 extern bool early_page_ext;
5757 extern unsigned long page_ext_size;
58−extern void pgdat_page_ext_init(struct pglist_data *pgdat);
5958
6059 static inline bool early_page_ext_enabled(void)
6160 {
@@ -202,10 +201,6 @@ static inline bool early_page_ext_enabled(void) · 140 unmodified lines
202201 return false;
203202 }
204203
205−static inline void pgdat_page_ext_init(struct pglist_data *pgdat)
206−{
207−}
208−
209204 static inline void page_ext_init(void)
210205 {
211206 }