]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmotm: memcgvmscan-do-not-break-out-targeted-reclaim-without-reclaimed-pages.patch fix
authorYing Han <yinghan@google.com>
Thu, 7 Feb 2013 01:26:15 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:18 +0000 (16:46 +1100)
commitf710fbc3720c85b88e2a3dc13070a6678ade10f9
tree6c2b46d65d5195b92707b5a4612bd6d09674ffdc
parent7530a20ccf4831ed5448dd0cc8fa69ae94ffc729
mmotm: memcgvmscan-do-not-break-out-targeted-reclaim-without-reclaimed-pages.patch fix

We should break out of the hierarchy loop only if nr_reclaimed exceeded
nr_to_reclaim and not vice-versa. This patch fixes the condition.

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