From: KAMEZAWA Hiroyuki Date: Thu, 20 Jan 2011 22:44:23 +0000 (-0800) Subject: memcg: modify accounting function for supporting THP better X-Git-Tag: v2.6.38-rc2~19^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e401f1761c0b01966e36e41e2c385d455a7b44ee;p=pandora-kernel.git memcg: modify accounting function for supporting THP better mem_cgroup_charge_statisics() was designed for charging a page but now, we have transparent hugepage. To fix problems (in following patch) it's required to change the function to get the number of pages as its arguments. The new function gets following as argument. - type of page rather than 'pc' - size of page which is accounted. Signed-off-by: KAMEZAWA Hiroyuki Cc: Daisuke Nishimura Cc: Balbir Singh Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed