Message ID | BANLkTimmn_PyU0xtfnG-CKxDxd1CTKx=Aw@mail.gmail.com |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/mm/vmscan.c b/mm/vmscan.c index 292582c..d9078cf 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2322,7 +2322,8 @@ static bool sleeping_prematurely(pg_data_t *pgdat, int order, long remaining, classzone_idx, 0)) all_zones_ok = false; else - balanced += zone->present_pages; + if (i <= classzone_idx) + balanced += zone->present_pages; }