]> 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>
Wed, 20 Feb 2013 02:14:04 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:23 +0000 (16:52 +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;
                        }