]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: revise the position of threshold index while unregistering event
authorSha Zhengju <handai.szj@taobao.com>
Thu, 3 May 2012 05:44:00 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:36 +0000 (15:46 +1000)
commitcd0f658a0f4925248c6bb77bb32ff4f336c9dddd
tree58bf99804e21a742d7696ec7d073406543c5fbc5
parent3abfc88f93b5ff553b3addea03cb6fd304bdd46f
memcg: revise the position of threshold index while unregistering event

Index current_threshold should point to threshold just below or equal to
usage.  See below: http://www.spinics.net/lists/cgroups/msg00844.html

Signed-off-by: Sha Zhengju <handai.szj@taobao.com>
Reviewed-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c