aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e2f26991fff1..8add7daf98b0 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2706,7 +2706,7 @@ static int zone_batchsize(struct zone *zone)
2706 * of pages of one half of the possible page colors 2706 * of pages of one half of the possible page colors
2707 * and the other with pages of the other colors. 2707 * and the other with pages of the other colors.
2708 */ 2708 */
2709 batch = (1 << (fls(batch + batch/2)-1)) - 1; 2709 batch = rounddown_pow_of_two(batch + batch/2) - 1;
2710 2710
2711 return batch; 2711 return batch;
2712} 2712}