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
55 55
56extern bool early_page_ext;56extern bool early_page_ext;
57extern unsigned long page_ext_size;57extern unsigned long page_ext_size;
58extern void pgdat_page_ext_init(struct pglist_data *pgdat);
59 58
60static inline bool early_page_ext_enabled(void)59static inline bool early_page_ext_enabled(void)
61{60{
@@ -202,10 +201,6 @@ static inline bool early_page_ext_enabled(void) · 140 unmodified lines
202 return false;201 return false;
203}202}
204 203
205static inline void pgdat_page_ext_init(struct pglist_data *pgdat)
206{
207}
208
209static inline void page_ext_init(void)204static inline void page_ext_init(void)
210{205{
211}206}