Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232410
b: refs/heads/master
c: 2ff754f
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Jan 26, 2011
1 parent 8974c42 commit 88b9598
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f33261d75b88f55a08e6a9648cef73509979bfba
refs/heads/master: 2ff754fa8f416e82327f2d8f1354a033b66286df
6 changes: 4 additions & 2 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,10 @@ static void drain_pages(unsigned int cpu)
pset = per_cpu_ptr(zone->pageset, cpu);

pcp = &pset->pcp;
free_pcppages_bulk(zone, pcp->count, pcp);
pcp->count = 0;
if (pcp->count) {
free_pcppages_bulk(zone, pcp->count, pcp);
pcp->count = 0;
}
local_irq_restore(flags);
}
}
Expand Down

0 comments on commit 88b9598

Please sign in to comment.