Re: [PATCH x86/mm UPDATED] x86-64, NUMA: Fix distance table handling

From: Yinghai Lu
Date: Thu Mar 10 2011 - 13:49:38 EST


On 03/02/2011 10:17 PM, Tejun Heo wrote:
> On Wed, Mar 02, 2011 at 01:14:29PM -0800, Yinghai Lu wrote:
>> what do you mean "enabled nodes"? numa_nodes_parsed? or from new
>> numa_meminfo?
>
> Yeah.
>

that will duplicate the code:

nodes_parsed = numa_nodes_parsed;
numa_nodemask_from_meminfo(&nodes_parsed, &numa_meminfo);

for_each_node_mask(i, nodes_parsed)
cnt = i;
cnt++;

in numa_alloc_distance().

Why just let numa_alloc_distance() to be called at first and return cnt ?

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/