summaryrefslogtreecommitdiffstats
path: root/mm/quicklist.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-09-24 17:34:52 +0200
committerRusty Russell <rusty@rustcorp.com.au>2009-09-24 02:04:52 +0200
commitdb7907865817137bfa3d5b4b30de9cc859b41bf1 (patch)
tree06a03dc68b8792ddb75bf900325e195d9d72c26a /mm/quicklist.c
parentcpumask: use mm_cpumask() wrapper: x86 (diff)
downloadlinux-db7907865817137bfa3d5b4b30de9cc859b41bf1.tar.xz
linux-db7907865817137bfa3d5b4b30de9cc859b41bf1.zip
cpumask: use new-style cpumask ops in mm/quicklist.
This slipped past the previous sweeps. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Christoph Lameter <cl@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--mm/quicklist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/quicklist.c b/mm/quicklist.c
index 6eedf7e473d1..6633965bb27b 100644
--- a/mm/quicklist.c
+++ b/mm/quicklist.c
@@ -29,7 +29,6 @@ static unsigned long max_pages(unsigned long min_pages)
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 long min_pages)
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);