Re: [PATCH 2/2] base/node: Use curr_node_memblock_intersect_memory_block to Get Memory Block NID if CONFIG_DEFERRED_STRUCT_PAGE_INIT is Set

From: Donet Tom
Date: Tue Apr 15 2025 - 06:08:43 EST



On 4/15/25 3:16 PM, Mike Rapoport wrote:
On Fri, Apr 11, 2025 at 05:06:55PM +0530, Donet Tom wrote:
On 4/11/25 4:29 PM, Mike Rapoport wrote:
It might make sense to use for_each_mem_range() as top level loop in
node_dev_init(), but that's a separate topic.
Yes, this makes sense to me as well. So in your opinion, instead of adding
a new memblock search function like I added , it's better to use
|for_each_mem_range()| in|node_dev_init()|, which would work for all
cases—regardless of whether|CONFIG_DEFERRED_STRUCT_PAGE_INIT| is set or
not. Right?
Yes

Thank you so much. I will implement it.