From cc124de9e3681ab702df520e584eaf2aec769b9d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:04 +1100 Subject: [PATCH] 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 --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5