diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-09-12 18:13:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 18:38:01 -0400 |
commit | f894ffa865301d4010d68b15be29912fa4039e77 (patch) | |
tree | 4176801838976098817ac8520325f5384865f421 /mm/vmscan.c | |
parent | e975de998b9612aa97e3165f8827c09e0d36ce77 (diff) |
memcg: trivial cleanups
Clean up some mess made by the "Soft limit rework" series, and a few other
things.
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index fa91c20fe4b7..76d1d5eaeec3 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -2205,12 +2205,12 @@ static void shrink_zone(struct zone *zone, struct scan_control *sc) | |||
2205 | 2205 | ||
2206 | scanned_groups = __shrink_zone(zone, sc, do_soft_reclaim); | 2206 | scanned_groups = __shrink_zone(zone, sc, do_soft_reclaim); |
2207 | /* | 2207 | /* |
2208 | * memcg iterator might race with other reclaimer or start from | 2208 | * memcg iterator might race with other reclaimer or start from |
2209 | * a incomplete tree walk so the tree walk in __shrink_zone | 2209 | * a incomplete tree walk so the tree walk in __shrink_zone |
2210 | * might have missed groups that are above the soft limit. Try | 2210 | * might have missed groups that are above the soft limit. Try |
2211 | * another loop to catch up with others. Do it just once to | 2211 | * another loop to catch up with others. Do it just once to |
2212 | * prevent from reclaim latencies when other reclaimers always | 2212 | * prevent from reclaim latencies when other reclaimers always |
2213 | * preempt this one. | 2213 | * preempt this one. |
2214 | */ | 2214 | */ |
2215 | if (do_soft_reclaim && !scanned_groups) | 2215 | if (do_soft_reclaim && !scanned_groups) |
2216 | __shrink_zone(zone, sc, do_soft_reclaim); | 2216 | __shrink_zone(zone, sc, do_soft_reclaim); |