diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-12-11 19:00:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 20:22:23 -0500 |
commit | 8732794b166196cc501c2ddd9e7c97cf45ab64c5 (patch) | |
tree | f9a3f04d08054de5d296e0104f61d4a1b13fbfb6 /include/linux/node.h | |
parent | 97d0da2204ed9e34d9d42c2024c5bea5543f13c6 (diff) |
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>
Diffstat (limited to 'include/linux/node.h')
-rw-r--r-- | include/linux/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/node.h b/include/linux/node.h index 624e53cecc02..10316f1c68a9 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
@@ -27,7 +27,7 @@ struct node { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | struct memory_block; | 29 | struct memory_block; |
30 | extern struct node node_devices[]; | 30 | extern struct node *node_devices[]; |
31 | typedef void (*node_registration_func_t)(struct node *); | 31 | typedef void (*node_registration_func_t)(struct node *); |
32 | 32 | ||
33 | extern int register_node(struct node *, int, struct node *); | 33 | extern int register_node(struct node *, int, struct node *); |