提交 db790786 编写于 作者: R Rusty Russell

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

This slipped past the previous sweeps.
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Acked-by: NChristoph Lameter <cl@linux-foundation.org>
上级 78f1c4d6
...@@ -29,7 +29,6 @@ static unsigned long max_pages(unsigned long min_pages) ...@@ -29,7 +29,6 @@ static unsigned long max_pages(unsigned long min_pages)
int node = numa_node_id(); int node = numa_node_id();
struct zone *zones = NODE_DATA(node)->node_zones; struct zone *zones = NODE_DATA(node)->node_zones;
int num_cpus_on_node; int num_cpus_on_node;
const struct cpumask *cpumask_on_node = cpumask_of_node(node);
node_free_pages = node_free_pages =
#ifdef CONFIG_ZONE_DMA #ifdef CONFIG_ZONE_DMA
...@@ -42,7 +41,7 @@ static unsigned long max_pages(unsigned long min_pages) ...@@ -42,7 +41,7 @@ static unsigned long max_pages(unsigned long min_pages)
max = node_free_pages / FRACTION_OF_NODE_MEM; 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; max /= num_cpus_on_node;
return max(max, min_pages); return max(max, min_pages);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册