From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:04 +0000 (+1100) Subject: mmotm-memcgvmscan-do-not-break-out-targeted-reclaim-without-reclaimed-pagespatch... X-Git-Tag: next-20130220~1^2~575 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc124de9e3681ab702df520e584eaf2aec769b9d;p=karo-tx-linux.git mmotm-memcgvmscan-do-not-break-out-targeted-reclaim-without-reclaimed-pagespatch-fix-fix use conventional comparison order Cc: Michal Hocko Cc: Ying Han Cc: Johannes Weiner Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 15644f00343b..463990941a78 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1983,7 +1983,7 @@ static void shrink_zone(struct zone *zone, struct scan_control *sc) * whole hierarchy is not sufficient. */ if (!global_reclaim(sc) && - sc->nr_to_reclaim <= sc->nr_reclaimed) { + sc->nr_reclaimed >= sc->nr_to_reclaim) { mem_cgroup_iter_break(root, memcg); break; }