From: Wei Yang <richard.weiyang@gmail.com>
To: David Hildenbrand <david@redhat.com>
Cc: Wei Yang <richard.weiyang@gmail.com>,
rppt@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm/mm_init.c: only align start of ZONE_MOVALBE on nodes with memory
Date: Wed, 12 Feb 2025 00:46:16 +0000 [thread overview]
Message-ID: <20250212004616.rjlip4jm7bltbtu5@master> (raw)
In-Reply-To: <b7de5a57-6783-4d41-97b9-52e8373d550c@redhat.com>
On Tue, Feb 11, 2025 at 04:26:26PM +0100, David Hildenbrand wrote:
>On 11.02.25 09:29, Wei Yang wrote:
>> At the beginning of find_zone_movable_pfns_for_nodes(), it has properly
>> set node_states[N_MEMORY] in early_calculate_totalpages().
>>
>> Instead of iterate on all possible nodes, we can just do the alignment
>> on nodes with memory.
>>
>> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
>> ---
>> mm/mm_init.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/mm/mm_init.c b/mm/mm_init.c
>> index 35754a8ae6c0..3ec50b5fda12 100644
>> --- a/mm/mm_init.c
>> +++ b/mm/mm_init.c
>> @@ -547,7 +547,7 @@ static void __init find_zone_movable_pfns_for_nodes(void)
>> out2:
>> /* Align start of ZONE_MOVABLE on all nids to MAX_ORDER_NR_PAGES */
>> - for (nid = 0; nid < MAX_NUMNODES; nid++) {
>> + for_each_node_state(nid, N_MEMORY) {
>> unsigned long start_pfn, end_pfn;
>> zone_movable_pfn[nid] =
>
>I think this should work
>
>Acked-by: David Hildenbrand <david@redhat.com>
>
Thanks :-)
>--
>Cheers,
>
>David / dhildenb
--
Wei Yang
Help you, Help me
next prev parent reply other threads:[~2025-02-12 0:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 8:29 Wei Yang
2025-02-11 15:26 ` David Hildenbrand
2025-02-12 0:46 ` Wei Yang [this message]
2025-02-12 15:57 ` Dev Jain
2025-02-12 23:34 ` Wei Yang
2025-02-13 4:27 ` Anshuman Khandual
2025-02-13 6:31 ` Mike Rapoport
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250212004616.rjlip4jm7bltbtu5@master \
--to=richard.weiyang@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox