From df6eab3103ec04beababb76d066b527de1ce1e74 Mon Sep 17 00:00:00 2001 From: David Howells Date: Wed, 6 May 2009 16:03:02 -0700 Subject: [PATCH] --- yaml --- r: 144654 b: refs/heads/master c: 9155203a5de94278525647b16733f0c315f3b786 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/page_alloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 203ac90e8f46..95b69307e997 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 74614f8d9d4141a3752fc1c38706859b63f4842b +refs/heads/master: 9155203a5de94278525647b16733f0c315f3b786 diff --git a/trunk/mm/page_alloc.c b/trunk/mm/page_alloc.c index e2f26991fff1..8add7daf98b0 100644 --- a/trunk/mm/page_alloc.c +++ b/trunk/mm/page_alloc.c @@ -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; }