| Submitter | MinChan Kim |
|---|---|
| Date | May 13, 2011, 5:39 a.m. |
| Message ID | <BANLkTimmn_PyU0xtfnG-CKxDxd1CTKx=Aw@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/95430/ |
| State | Not Applicable |
| Headers | show |
Comments
Patch
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; }