On Tue 04-04-17 09:23:29, Michal Hocko wrote: > [Let's add Gary who as introduced this code c04fc586c1a48] OK, so Gary's email doesn't exist anymore. Does anybody can comment on this? I suspect this code is just-in-case... Mel? > On Mon 03-04-17 15:42:13, Reza Arbab wrote: [...] > > Almost there. I'm seeing the memory in the correct node now, but the > > /sys/devices/system/node/nodeX/memoryY links are not being created. > > > > I think it's tripping up here, in register_mem_sect_under_node(): > > > > page_nid = get_nid_for_pfn(pfn); > > if (page_nid < 0) > > continue; > > Huh, this code is confusing. How can we have a memblock spanning more > nodes? If not then the loop over all sections in the memblock seem > pointless as well. Also why do we require page_initialized() in > get_nid_for_pfn? The changelog doesn't explain that and there are no > comments that would help either. > > Gary, could you clarify this please? > -- > Michal Hocko > SUSE Labs -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>