mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 04:45:43 +01:00
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. Link: https://lore.kernel.org/[email protected] Signed-off-by: Sang-Heon Jeon <[email protected]> Acked-by: Zi Yan <[email protected]> Acked-by: David Hildenbrand (Arm) <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Liam R. Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
1 parent
34568000f3
commit
0ddb8bb85b
3 files changed
-15
No files matched your search
@@ -55,7 +55,6 @@ struct page_ext {
|
||||
|
||||
extern bool early_page_ext;
|
||||
extern unsigned long page_ext_size;
|
||||
extern void pgdat_page_ext_init(struct pglist_data *pgdat);
|
||||
|
||||
static inline bool early_page_ext_enabled(void)
|
||||
{
|
||||
@@ -202,10 +201,6 @@ static inline bool early_page_ext_enabled(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline void pgdat_page_ext_init(struct pglist_data *pgdat)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void page_ext_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1394,7 +1394,6 @@ static void __meminit pgdat_init_internals(struct pglist_data *pgdat)
|
||||
for (i = 0; i < NR_VMSCAN_THROTTLE; i++)
|
||||
init_waitqueue_head(&pgdat->reclaim_wait[i]);
|
||||
|
||||
pgdat_page_ext_init(pgdat);
|
||||
lruvec_init(&pgdat->__lruvec);
|
||||
}
|
||||
|
||||
|
||||
@@ -164,11 +164,6 @@ void __init page_ext_init_flatmem_late(void)
|
||||
invoke_init_callbacks();
|
||||
}
|
||||
|
||||
void __meminit pgdat_page_ext_init(struct pglist_data *pgdat)
|
||||
{
|
||||
pgdat->node_page_ext = NULL;
|
||||
}
|
||||
|
||||
static struct page_ext *lookup_page_ext(const struct page *page)
|
||||
{
|
||||
unsigned long pfn = page_to_pfn(page);
|
||||
@@ -494,10 +489,6 @@ oom:
|
||||
panic("Out of memory");
|
||||
}
|
||||
|
||||
void __meminit pgdat_page_ext_init(struct pglist_data *pgdat)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user