]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmotm-memcgvmscan-do-not-break-out-targeted-reclaim-without-reclaimed-pagespatch...
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:15 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:19 +0000 (16:46 +1100)
use conventional comparison order

Cc: Michal Hocko <mhocko@suse.cz>
Cc: Ying Han <yinghan@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 15644f00343b4b419861181429a9705152f9e5a8..463990941a78bdfcaabea5682e2e4336aa3ab39d 100644 (file)
@@ -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;
                        }