From: KAMEZAWA Hiroyuki Date: Wed, 27 Oct 2010 22:33:43 +0000 (-0700) Subject: memcg: generic filestat update interface X-Git-Tag: v2.6.37-rc1~85^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26174efd42100eefac67732c0c12f41a205fa335;p=pandora-kernel.git memcg: generic filestat update interface This patch extracts the core logic from mem_cgroup_update_file_mapped() as mem_cgroup_update_file_stat() and adds a wrapper. As a planned future update, memory cgroup has to count dirty pages to implement dirty_ratio/limit. And more, the number of dirty pages is required to kick flusher thread to start writeback. (Now, no kick.) This patch is preparation for it and makes other statistics implementation clearer. Just a clean up. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Balbir Singh Reviewed-by: Greg Thelen Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed