* + mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid.patch added to mm-unstable branch
@ 2025-02-26 2:19 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-02-26 2:19 UTC (permalink / raw)
To: mm-commits, richard.weiyang, muchun.song, fvdl, rppt, akpm
The patch titled
Subject: mm/mm_init: rename __init_reserved_page_zone to __init_page_from_nid
has been added to the -mm mm-unstable branch. Its filename is
mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Subject: mm/mm_init: rename __init_reserved_page_zone to __init_page_from_nid
Date: Tue, 25 Feb 2025 10:30:16 +0200
__init_reserved_page_zone() function finds the zone for pfn and nid and
performs initialization of a struct page with that zone and nid. There is
nothing in that function about reserved pages and it is misnamed.
Rename it to __init_page_from_nid() to better reflect what the function
does.
Link: https://lkml.kernel.org/r/20250225083017.567649-2-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Frank van der Linden <fvdl@google.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/hugetlb.c | 2 +-
mm/internal.h | 2 +-
mm/mm_init.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
--- a/mm/hugetlb.c~mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid
+++ a/mm/hugetlb.c
@@ -3392,7 +3392,7 @@ static void __init hugetlb_bootmem_free_
while (npages--) {
pfn = page_to_pfn(page);
- __init_reserved_page_zone(pfn, nid);
+ __init_page_from_nid(pfn, nid);
free_reserved_page(page);
page++;
}
--- a/mm/internal.h~mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid
+++ a/mm/internal.h
@@ -1465,7 +1465,7 @@ static inline bool pte_needs_soft_dirty_
void __meminit __init_single_page(struct page *page, unsigned long pfn,
unsigned long zone, int nid);
-void __meminit __init_reserved_page_zone(unsigned long pfn, int nid);
+void __meminit __init_page_from_nid(unsigned long pfn, int nid);
/* shrinker related functions */
unsigned long shrink_slab(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg,
--- a/mm/mm_init.c~mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid
+++ a/mm/mm_init.c
@@ -653,7 +653,7 @@ static inline void fixup_hashdist(void)
/*
* Initialize a reserved page unconditionally, finding its zone first.
*/
-void __meminit __init_reserved_page_zone(unsigned long pfn, int nid)
+void __meminit __init_page_from_nid(unsigned long pfn, int nid)
{
pg_data_t *pgdat;
int zid;
@@ -733,7 +733,7 @@ static void __meminit init_reserved_page
if (early_page_initialised(pfn, nid))
return;
- __init_reserved_page_zone(pfn, nid);
+ __init_page_from_nid(pfn, nid);
}
#else
static inline void pgdat_set_deferred_range(pg_data_t *pgdat) {}
_
Patches currently in -mm which might be from rppt@kernel.org are
mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid.patch
mm-mm_init-rename-init_reserved_page-to-init_deferred_page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-26 2:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26 2:19 + mm-mm_init-rename-__init_reserved_page_zone-to-__init_page_from_nid.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.