numa: convert static memory to dynamically allocated memory for per node device
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 12 Dec 2012 00:00:56 +0000 (16:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:23 +0000 (17:22 -0800)
commit8732794b166196cc501c2ddd9e7c97cf45ab64c5
treef9a3f04d08054de5d296e0104f61d4a1b13fbfb6
parent97d0da2204ed9e34d9d42c2024c5bea5543f13c6
numa: convert static memory to dynamically allocated memory for per node device

We use a static array to store struct node.  In many cases, we don't have
too many nodes, and some memory will be unused.  Convert it to per-device
dynamically allocated memory.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/sysfs.c
drivers/base/node.c
include/linux/node.h
mm/hugetlb.c