diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3f30189896fd..e2f26991fff1 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2128,7 +2128,7 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2128 | int n, val; | 2128 | int n, val; |
2129 | int min_val = INT_MAX; | 2129 | int min_val = INT_MAX; |
2130 | int best_node = -1; | 2130 | int best_node = -1; |
2131 | node_to_cpumask_ptr(tmp, 0); | 2131 | const struct cpumask *tmp = cpumask_of_node(0); |
2132 | 2132 | ||
2133 | /* Use the local node if we haven't already */ | 2133 | /* Use the local node if we haven't already */ |
2134 | if (!node_isset(node, *used_node_mask)) { | 2134 | if (!node_isset(node, *used_node_mask)) { |
@@ -2149,8 +2149,8 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask) | |||
2149 | val += (n < node); | 2149 | val += (n < node); |
2150 | 2150 | ||
2151 | /* Give preference to headless and unused nodes */ | 2151 | /* Give preference to headless and unused nodes */ |
2152 | node_to_cpumask_ptr_next(tmp, n); | 2152 | tmp = cpumask_of_node(n); |
2153 | if (!cpus_empty(*tmp)) | 2153 | if (!cpumask_empty(tmp)) |
2154 | val += PENALTY_FOR_NODE_WITH_CPUS; | 2154 | val += PENALTY_FOR_NODE_WITH_CPUS; |
2155 | 2155 | ||
2156 | /* Slight preference for less loaded node */ | 2156 | /* Slight preference for less loaded node */ |