From: KAMEZAWA Hiroyuki Date: Tue, 1 Feb 2011 23:52:45 +0000 (-0800) Subject: memcg: fix event counting breakage from recent THP update X-Git-Tag: v2.6.38-rc4~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3751d60430fe4c26460a5ca8ad8672d32f93bcb1;p=pandora-kernel.git 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 Reviewed-by: Johannes Weiner Cc: Daisuke Nishimura Cc: Balbir Singh Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed