diff options
| author | Mike Rapoport (Microsoft) <[email protected]> | 2025-02-25 08:30:17 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-22 05:03:11 +0000 |
| commit | b4f65dbdf87812056c224fd8d2c66318b2140ab5 (patch) | |
| tree | cc4f43f03f084c443ae175d577f2756379547c8b /mm/mm_init.c | |
| parent | mm/mm_init: rename __init_reserved_page_zone to __init_page_from_nid (diff) | |
| download | kernel-b4f65dbdf87812056c224fd8d2c66318b2140ab5.tar.gz kernel-b4f65dbdf87812056c224fd8d2c66318b2140ab5.zip | |
mm/mm_init: rename init_reserved_page to init_deferred_page
When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, init_reserved_page()
function performs initialization of a struct page that would have been
deferred normally.
Rename it to init_deferred_page() to better reflect what the function does.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport (Microsoft) <[email protected]>
Reviewed-by: Wei Yang <[email protected]>
Cc: Frank van der Linden <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Changyuan Lyu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mm_init.c')
| -rw-r--r-- | mm/mm_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c index 16a96aaf65c4..a38a1909b407 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -743,7 +743,7 @@ defer_init(int nid, unsigned long pfn, unsigned long end_pfn) return false; } -static void __meminit init_reserved_page(unsigned long pfn, int nid) +static void __meminit init_deferred_page(unsigned long pfn, int nid) { if (early_page_initialised(pfn, nid)) return; @@ -763,7 +763,7 @@ static inline bool defer_init(int nid, unsigned long pfn, unsigned long end_pfn) return false; } -static inline void init_reserved_page(unsigned long pfn, int nid) +static inline void init_deferred_page(unsigned long pfn, int nid) { } #endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */ @@ -784,7 +784,7 @@ void __meminit reserve_bootmem_region(phys_addr_t start, if (pfn_valid(start_pfn)) { struct page *page = pfn_to_page(start_pfn); - init_reserved_page(start_pfn, nid); + init_deferred_page(start_pfn, nid); /* * no need for atomic set_bit because the struct |
