X-Git-Url: http://git.alex.org.uk diff --git a/mm/vmscan.c b/mm/vmscan.c index 4b8b37c..1e0eefe 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2245,7 +2245,8 @@ static bool pgdat_balanced(pg_data_t *pgdat, unsigned long balanced_pages, for (i = 0; i <= classzone_idx; i++) present_pages += pgdat->node_zones[i].present_pages; - return balanced_pages > (present_pages >> 2); + /* A special case here: if zone has no page, we think it's balanced */ + return balanced_pages >= (present_pages >> 2); } /* is kswapd sleeping prematurely? */