]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memcg: revise the position of threshold index while unregistering event
authorSha Zhengju <handai.szj@taobao.com>
Wed, 25 Apr 2012 01:03:47 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:26 +0000 (15:17 +1000)
commitfad0d02498d8a44f8ba7124d21620621a739e319
treeb577a4db876bd16d72e36a5d89fd8117779f324c
parentef1723f2d6caf049a0cf1143620b2728fae5f5c3
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