From: Yinghai Lu Date: Tue, 22 Feb 2011 10:18:49 +0000 (+0100) Subject: x86-64, NUMA: Seperate out numa_alloc_distance() from numa_set_distance() X-Git-Tag: v2.6.39-rc1~499^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf50555b0920be7e29d3823f6bbd20ee5920489;p=pandora-kernel.git x86-64, NUMA: Seperate out numa_alloc_distance() from numa_set_distance() Alloc code is much bigger the distance setting. Separate it out into numa_alloc_distance() for readability. -v2: Let alloc_numa_distance to return -ENOMEM on failing path, requested by tj. -tj: Description update. Minor tweaks including function name, location and return value check. Signed-off-by: Yinghai Lu Acked-by: David Rientjes Signed-off-by: Tejun Heo --- Reading git-diff-tree failed