Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42681
b: refs/heads/master
c: bc4ba39
h: refs/heads/master
i:
  42679: b2f4eb6
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Dec 7, 2006
1 parent b6100f9 commit a71a50e
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ebe29738f3934ad6a93c8bd76e30aa5d797a269d
refs/heads/master: bc4ba393c007248f76c05945abb7b7b892cdd1cc
10 changes: 8 additions & 2 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,15 @@ void drain_node_pages(int nodeid)

pcp = &pset->pcp[i];
if (pcp->count) {
int to_drain;

local_irq_save(flags);
free_pages_bulk(zone, pcp->count, &pcp->list, 0);
pcp->count = 0;
if (pcp->count >= pcp->batch)
to_drain = pcp->batch;
else
to_drain = pcp->count;
free_pages_bulk(zone, to_drain, &pcp->list, 0);
pcp->count -= to_drain;
local_irq_restore(flags);
}
}
Expand Down

0 comments on commit a71a50e

Please sign in to comment.