aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a3803ea8c27d..f87e0d8df5a7 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2139,7 +2139,7 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask)
2139 int n, val; 2139 int n, val;
2140 int min_val = INT_MAX; 2140 int min_val = INT_MAX;
2141 int best_node = -1; 2141 int best_node = -1;
2142 node_to_cpumask_ptr(tmp, 0); 2142 const struct cpumask *tmp = cpumask_of_node(0);
2143 2143
2144 /* Use the local node if we haven't already */ 2144 /* Use the local node if we haven't already */
2145 if (!node_isset(node, *used_node_mask)) { 2145 if (!node_isset(node, *used_node_mask)) {
@@ -2160,8 +2160,8 @@ static int find_next_best_node(int node, nodemask_t *used_node_mask)
2160 val += (n < node); 2160 val += (n < node);
2161 2161
2162 /* Give preference to headless and unused nodes */ 2162 /* Give preference to headless and unused nodes */
2163 node_to_cpumask_ptr_next(tmp, n); 2163 tmp = cpumask_of_node(n);
2164 if (!cpus_empty(*tmp)) 2164 if (!cpumask_empty(tmp))
2165 val += PENALTY_FOR_NODE_WITH_CPUS; 2165 val += PENALTY_FOR_NODE_WITH_CPUS;
2166 2166
2167 /* Slight preference for less loaded node */ 2167 /* Slight preference for less loaded node */