Skip to contentSkip to conversation

cpumask: use new-style cpumask ops in mm/quicklist.

PATCH In review Rusty Russell 2 participants 2 messages Jun 12, 2009 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpumask: use new-style cpumask ops in mm/quicklist.

This slipped past the previous sweeps.

To: Christoph Lameter <[email protected]>

---
 mm/quicklist.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/quicklist.c +1 -2
@@ -29,7 +29,6 @@ static unsigned long max_pages(unsigned 
 	int node = numa_node_id();
 	struct zone *zones = NODE_DATA(node)->node_zones;
 	int num_cpus_on_node;
-	const struct cpumask *cpumask_on_node = cpumask_of_node(node);
 
 	node_free_pages =
 #ifdef CONFIG_ZONE_DMA
@@ -42,7 +41,7 @@ static unsigned long max_pages(unsigned 
 
 	max = node_free_pages / FRACTION_OF_NODE_MEM;
 
-	num_cpus_on_node = cpus_weight_nr(*cpumask_on_node);
+	num_cpus_on_node = cpumask_weight(cpumask_of_node(node));
 	max /= num_cpus_on_node;
 
 	return max(max, min_pages);