public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpumask: use new-style cpumask ops in mm/quicklist.
@ 2009-06-12 13:04 Rusty Russell
  2009-06-12 13:36 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2009-06-12 13:04 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-kernel

This slipped past the previous sweeps.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: Christoph Lameter <cl@linux-foundation.org>
---
 mm/quicklist.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mm/quicklist.c b/mm/quicklist.c
--- a/mm/quicklist.c
+++ b/mm/quicklist.c
@@ -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);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpumask: use new-style cpumask ops in mm/quicklist.
  2009-06-12 13:04 [PATCH] cpumask: use new-style cpumask ops in mm/quicklist Rusty Russell
@ 2009-06-12 13:36 ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2009-06-12 13:36 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-kernel

On Fri, 12 Jun 2009, Rusty Russell wrote:

> This slipped past the previous sweeps.

Acked-by: Christoph Lameter <cl@linux-foundation.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-12 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 13:04 [PATCH] cpumask: use new-style cpumask ops in mm/quicklist Rusty Russell
2009-06-12 13:36 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox