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.
Unified · Split
| @@ -55,7 +55,6 @@ struct page_ext { · 54 unmodified lines | |||
| 55 | 55 | ||
| 56 | extern bool early_page_ext; | 56 | extern bool early_page_ext; |
| 57 | extern unsigned long page_ext_size; | 57 | extern unsigned long page_ext_size; |
| 58 | extern void pgdat_page_ext_init(struct pglist_data *pgdat); | ||
| 59 | 58 | ||
| 60 | static inline bool early_page_ext_enabled(void) | 59 | static 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 | ||
| 205 | static inline void pgdat_page_ext_init(struct pglist_data *pgdat) | ||
| 206 | { | ||
| 207 | } | ||
| 208 | |||
| 209 | static inline void page_ext_init(void) | 204 | static inline void page_ext_init(void) |
| 210 | { | 205 | { |
| 211 | } | 206 | } |
| @@ -1394,7 +1394,6 @@ static void __meminit pgdat_init_internals(struct pglist_data *pgdat) · 1393 unmodified lines | |||
| 1394 | for (i = 0; i < NR_VMSCAN_THROTTLE; i++) | 1394 | for (i = 0; i < NR_VMSCAN_THROTTLE; i++) |
| 1395 | init_waitqueue_head(&pgdat->reclaim_wait[i]); | 1395 | init_waitqueue_head(&pgdat->reclaim_wait[i]); |
| 1396 | 1396 | ||
| 1397 | pgdat_page_ext_init(pgdat); | ||
| 1398 | lruvec_init(&pgdat->__lruvec); | 1397 | lruvec_init(&pgdat->__lruvec); |
| 1399 | } | 1398 | } |
| 1400 | 1399 | ||
| @@ -164,11 +164,6 @@ void __init page_ext_init_flatmem_late(void) · 163 unmodified lines | |||
| 164 | invoke_init_callbacks(); | 164 | invoke_init_callbacks(); |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | void __meminit pgdat_page_ext_init(struct pglist_data *pgdat) | ||
| 168 | { | ||
| 169 | pgdat->node_page_ext = NULL; | ||
| 170 | } | ||
| 171 | |||
| 172 | static struct page_ext *lookup_page_ext(const struct page *page) | 167 | static struct page_ext *lookup_page_ext(const struct page *page) |
| 173 | { | 168 | { |
| 174 | unsigned long pfn = page_to_pfn(page); | 169 | unsigned long pfn = page_to_pfn(page); |
| @@ -494,10 +489,6 @@ oom: · 319 unmodified lines | |||
| 494 | panic("Out of memory"); | 489 | panic("Out of memory"); |
| 495 | } | 490 | } |
| 496 | 491 | ||
| 497 | void __meminit pgdat_page_ext_init(struct pglist_data *pgdat) | ||
| 498 | { | ||
| 499 | } | ||
| 500 | |||
| 501 | #endif | 492 | #endif |
| 502 | 493 | ||
| 503 | /** | 494 | /** |