summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorWanpeng Li <liwanp@linux.vnet.ibm.com>2012-10-09 01:32:21 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 09:22:47 +0200
commite9d24ad30fc5c4c601824fb39712350b053ca812 (patch)
tree6dbff4457b29fd7f694c219b97114b8a1d893cca /mm
parentreadahead: fault retry breaks mmap file read random detection (diff)
downloadlinux-e9d24ad30fc5c4c601824fb39712350b053ca812.tar.xz
linux-e9d24ad30fc5c4c601824fb39712350b053ca812.zip
mm/memblock: use existing interface to set nid
Use the existing interface function to set the NUMA node ID (NID) for the regions, either memory or reserved region. Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Gavin Shan <shangw@linux.vnet.ibm.com> Cc: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memblock.c b/mm/memblock.c
index 82aa349d2f7a..d809f17ef75b 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -756,7 +756,7 @@ int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size,
return ret;
for (i = start_rgn; i < end_rgn; i++)
- type->regions[i].nid = nid;
+ memblock_set_region_node(&type->regions[i], nid);
memblock_merge_regions(type);
return 0;