diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-25 01:09:42 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-25 01:09:41 -0800 |
| commit | 8bf98ede40ec91bdbe454dc253243f473eba680b (patch) | |
| tree | 48d00b30391e1a48043092a4203ea5ae95717bf1 | |
| parent | cd59564d4f072c51b21e59c3aea1e85daea5a1fa (diff) | |
| parent | 06f2deba39613be5b207630b8afbacf32ec0138a (diff) | |
Merge "mm/compaction.c: fix zoneindex in kcompactd()"
| -rw-r--r-- | mm/compaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index b911b9a831aa..91f5d60e3a99 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1781,7 +1781,7 @@ static bool kcompactd_node_suitable(pg_data_t *pgdat) struct zone *zone; enum zone_type classzone_idx = pgdat->kcompactd_classzone_idx; - for (zoneid = 0; zoneid < classzone_idx; zoneid++) { + for (zoneid = 0; zoneid <= classzone_idx; zoneid++) { zone = &pgdat->node_zones[zoneid]; if (!populated_zone(zone)) @@ -1816,7 +1816,7 @@ static void kcompactd_do_work(pg_data_t *pgdat) cc.classzone_idx); count_vm_event(KCOMPACTD_WAKE); - for (zoneid = 0; zoneid < cc.classzone_idx; zoneid++) { + for (zoneid = 0; zoneid <= cc.classzone_idx; zoneid++) { int status; zone = &pgdat->node_zones[zoneid]; |
