Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144654
b: refs/heads/master
c: 9155203
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed May 6, 2009
1 parent 0931544 commit df6eab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 74614f8d9d4141a3752fc1c38706859b63f4842b
refs/heads/master: 9155203a5de94278525647b16733f0c315f3b786
2 changes: 1 addition & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,7 @@ static int zone_batchsize(struct zone *zone)
* of pages of one half of the possible page colors
* and the other with pages of the other colors.
*/
batch = (1 << (fls(batch + batch/2)-1)) - 1;
batch = rounddown_pow_of_two(batch + batch/2) - 1;

return batch;
}
Expand Down

0 comments on commit df6eab3

Please sign in to comment.