summaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2010-10-28 00:33:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-28 03:03:10 +0200
commit26174efd42100eefac67732c0c12f41a205fa335 (patch)
tree81a7d758a3fcfd755e9e94ee7f66854133c281cf /kernel/ptrace.c
parentmemcg: cpu hotplug aware quick acount_move detection (diff)
downloadlinux-26174efd42100eefac67732c0c12f41a205fa335.tar.xz
linux-26174efd42100eefac67732c0c12f41a205fa335.zip
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 <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Reviewed-by: Greg Thelen <gthelen@google.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 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions