]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mm_init.c: only align start of ZONE_MOVABLE on nodes with memory
authorWei Yang <richard.weiyang@gmail.com>
Tue, 11 Feb 2025 08:29:00 +0000 (08:29 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:50 +0000 (21:49 -0800)
commitf2821bc106322a9c936dbf478480f1cf436d3242
treea20638fbdbcf830421a998e2bfa8d255879f88e6
parent32b8e069a8845fe0b35d37429ac8aa85c80a399b
mm/mm_init.c: only align start of ZONE_MOVABLE on nodes with memory

At the beginning of find_zone_movable_pfns_for_nodes(), it has properly
set node_states[N_MEMORY] in early_calculate_totalpages().

Instead of iterating over all possible nodes, we can just do the alignment
on nodes with memory.

Link: https://lkml.kernel.org/r/20250211082900.10877-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mm_init.c