aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 0d70fb7d83be..2c521defb41e 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -126,7 +126,7 @@ static int mpol_check_policy(int mode, nodemask_t *nodes)
126 return -EINVAL; 126 return -EINVAL;
127 break; 127 break;
128 } 128 }
129 return nodes_subset(*nodes, node_online_map) ? 0 : -EINVAL; 129 return nodes_subset(*nodes, node_states[N_HIGH_MEMORY]) ? 0 : -EINVAL;
130} 130}
131 131
132/* Generate a custom zonelist for the BIND policy. */ 132/* Generate a custom zonelist for the BIND policy. */
@@ -965,7 +965,7 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode,
965 goto out; 965 goto out;
966 } 966 }
967 967
968 if (!nodes_subset(new, node_online_map)) { 968 if (!nodes_subset(new, node_states[N_HIGH_MEMORY])) {
969 err = -EINVAL; 969 err = -EINVAL;
970 goto out; 970 goto out;
971 } 971 }