diff options
| author | Lai Jiangshan <[email protected]> | 2012-12-12 21:51:36 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-12-13 01:38:33 +0000 |
| commit | 8cebfcd074a3044780f3f9af236fc8534d89e55e (patch) | |
| tree | 38075cf409d3517e7b9ffce8e40eab2a4a9c3caa /drivers/base/node.c | |
| parent | mempolicy: use N_MEMORY instead N_HIGH_MEMORY (diff) | |
| download | kernel-8cebfcd074a3044780f3f9af236fc8534d89e55e.tar.gz kernel-8cebfcd074a3044780f3f9af236fc8534d89e55e.zip | |
hugetlb: use N_MEMORY instead N_HIGH_MEMORY
N_HIGH_MEMORY stands for the nodes that has normal or high memory.
N_MEMORY stands for the nodes that has any memory.
The code here need to handle with the nodes which have memory, we should
use N_MEMORY instead.
Signed-off-by: Lai Jiangshan <[email protected]>
Acked-by: Hillf Danton <[email protected]>
Signed-off-by: Wen Congyang <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: Lin Feng <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/base/node.c')
| -rw-r--r-- | drivers/base/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 294e31626210..49dbe7dc9ada 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -227,7 +227,7 @@ static node_registration_func_t __hugetlb_unregister_node; static inline bool hugetlb_register_node(struct node *node) { if (__hugetlb_register_node && - node_state(node->dev.id, N_HIGH_MEMORY)) { + node_state(node->dev.id, N_MEMORY)) { __hugetlb_register_node(node); return true; } |
