Commit b14cae31 authored by Andrea Arcangeli's avatar Andrea Arcangeli

mm: zone_reclaim: compaction: increase the high order pages in the watermarks

Prevent the scaling down to reduce the watermarks too much.
Signed-off-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
parent 7a271558
......@@ -1896,6 +1896,7 @@ static bool __zone_watermark_ok(struct zone *z, unsigned int order,
free_pages -= z->free_area[o].nr_free << o;
/* Require fewer higher order pages to be free */
if (o < (pageblock_order >> 2))
min >>= 1;
if (free_pages <= min)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment