From: Vladimir Davydov Date: Wed, 10 Dec 2014 23:43:40 +0000 (-0800) Subject: memcg: simplify unreclaimable groups handling in soft limit reclaim X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc2f2e7ffe5b6292c74ee1206d6ca303e13886b2;p=pandora-kernel.git memcg: simplify unreclaimable groups handling in soft limit reclaim If we fail to reclaim anything from a cgroup during a soft reclaim pass we want to get the next largest cgroup exceeding its soft limit. To achieve this, we should obviously remove the current group from the tree and then pick the largest group. Currently we have a weird loop instead. Let's simplify it. Signed-off-by: Vladimir Davydov Acked-by: Johannes Weiner Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed