]> 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, 12 Apr 2012 22:52:09 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:22 +0000 (13:47 +1000)
commit7d170856020c6ad96ef4b9dbc24635052587f01f
treeb744f499c10dcb7d94766224736894b919d5e5c2
parent323b36197475a97208fde2ae8cf541f3f63f17b7
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