Message ID | 20240525023040.13509-1-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v3,1/3] mm/mm_init.c: use memblock_region_memory_base_pfn() to get startpfn | expand |
From: Mike Rapoport (IBM) <rppt@kernel.org> On Sat, 25 May 2024 02:30:38 +0000, Wei Yang wrote: > Just like what it does in "if (mirrored_kernelcore)", we should use > memblock_region_memory_base_pfn() to get the startpfn. > > Applied to for-6.11 branch of memblock.git tree, thanks! [1/3] mm/mm_init.c: use memblock_region_memory_base_pfn() to get startpfn commit: 560132fe1f5949ab324a54d3ce81997a8d2b5c41 [2/3] mm/memblock: fix a typo of for_each_mem_region() commit: 1e02f896e0ed8b8683687ba94203b3420c48bf80 [3/3] mm/mm_init.c: move nr_initialised reset down a bit commit: 8c73b8ee064679d0d67e393e4a680784f886a94c tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock branch: for-6.11 -- Sincerely yours, Mike.
diff --git a/mm/mm_init.c b/mm/mm_init.c index f72b852bd5b8..2dfb87841fdb 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -363,7 +363,7 @@ static void __init find_zone_movable_pfns_for_nodes(void) nid = memblock_get_region_node(r); - usable_startpfn = PFN_DOWN(r->base); + usable_startpfn = memblock_region_memory_base_pfn(r); zone_movable_pfn[nid] = zone_movable_pfn[nid] ? min(usable_startpfn, zone_movable_pfn[nid]) : usable_startpfn;
Just like what it does in "if (mirrored_kernelcore)", we should use memblock_region_memory_base_pfn() to get the startpfn. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> --- v3: separate a typo fix to a new patch --- mm/mm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)