fix NUMA compile with large cpumasks
Subsystems (2)
PATCH 1/1 fix NUMA compile with large cpumasks
Hi,
The recent NUMA changes fail to compile with large cpumasks, we need to use a temporary to get around the type checking.
Anton
---
gr26_work-anton/mm/page_alloc.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~numacompile +4 -1
@@ -1155,6 +1155,8 @@ static int __init find_next_best_node(inint best_node =-1 ;for (i =0 ; i < numnodes; i++) { +cpumask_t tmp; +/* Start from local node */ n = (node+i)%numnodes;
@@ -1166,7 +1168,8 @@ static int __init find_next_best_node(in val =node_distance (node, n);/* Give preference to headless and unused nodes */ -if (!cpus_empty (node_to_cpumask (n))) + tmp =node_to_cpumask (n); +if (!cpus_empty (tmp)) val +=PENALTY_FOR_NODE_WITH_CPUS ;/* Slight preference for less loaded node */
_