summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki2011-02-02 00:52:45 +0100
committerLinus Torvalds2011-02-03 01:03:19 +0100
commit3751d60430fe4c26460a5ca8ad8672d32f93bcb1 (patch)
treef0bbefb76a4fc328ca441bd71fc49a5a091bb323 /include/linux
parentmemcg: never OOM when charging huge pages (diff)
downloadkernel-qcow2-linux-3751d60430fe4c26460a5ca8ad8672d32f93bcb1.tar.gz
kernel-qcow2-linux-3751d60430fe4c26460a5ca8ad8672d32f93bcb1.tar.xz
kernel-qcow2-linux-3751d60430fe4c26460a5ca8ad8672d32f93bcb1.zip
memcg: fix event counting breakage from recent THP update
Changes in e401f1761 ("memcg: modify accounting function for supporting THP better") adds nr_pages to support multiple page size in memory_cgroup_charge_statistics. But counting the number of event nees abs(nr_pages) for increasing counters. This patch fixes event counting. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions