Skip to content

Commit

Permalink
cpumask: use new-style cpumask ops in mm/quicklist.
Browse files Browse the repository at this point in the history
This slipped past the previous sweeps.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
  • Loading branch information
rustyrussell committed Sep 24, 2009
1 parent 78f1c4d commit db79078
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/quicklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit db79078

Please sign in to comment.