]> 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>
Fri, 28 Feb 2025 00:59:59 +0000 (16:59 -0800)
commitd0a01db04afe64d7b94ee818e5315dc41a45f59e
treeb8b4f9441d2b6637247991748bbdbc9e41051cdd
parent1bed39b75c42abaace173c19922d0f673f4251a1
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