Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165637
b: refs/heads/master
c: db79078
h: refs/heads/master
i:
  165635: 7715db8
v: v3
  • Loading branch information
Rusty Russell committed Sep 24, 2009
1 parent 6627336 commit a5e985c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78f1c4d6b027993763a5aba83873b0462d06db8f
refs/heads/master: db7907865817137bfa3d5b4b30de9cc859b41bf1
3 changes: 1 addition & 2 deletions trunk/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 a5e985c

Please sign in to comment.