summaryrefslogtreecommitdiffstats
path: root/net/appletalk
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2010-03-11 00:22:30 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-13 00:52:37 +0100
commit430e48631e72aeab74d844c57b441f98a2e36eee (patch)
treee1b3eadc1b5c1871db0bf1247af8684b53cae12a /net/appletalk
parentmemcg: use generic percpu instead of private implementation (diff)
downloadlinux-430e48631e72aeab74d844c57b441f98a2e36eee.tar.xz
linux-430e48631e72aeab74d844c57b441f98a2e36eee.zip
memcg: update threshold and softlimit at commit
Presently, move_task does "batched" precharge. Because res_counter or css's refcnt are not-scalable jobs for memcg, try_charge_().. tend to be done in batched manner if allowed. Now, softlimit and threshold check their event counter in try_charge, but the charge is not a per-page event. And event counter is not updated at charge(). Moreover, precharge doesn't pass "page" to try_charge() and softlimit tree will be never updated until uncharge() causes an event." So the best place to check the event counter is commit_charge(). This is per-page event by its nature. This patch move checks to there. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Kirill A. Shutemov <kirill@shutemov.name> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/appletalk')
0 files changed, 0 insertions, 0 deletions