summaryrefslogtreecommitdiffstats
path: root/mm/mmzone.c
diff options
context:
space:
mode:
authorMichal Hocko2013-02-23 01:34:45 +0100
committerLinus Torvalds2013-02-24 02:50:17 +0100
commit6acc8b02517d7063b25490b26215834bd2f363c8 (patch)
tree41838cd43aaae8b75cee1ccb073a4d8620104018 /mm/mmzone.c
parentmemcg: do not create memsw files if swap accounting is disabled (diff)
downloadkernel-qcow2-linux-6acc8b02517d7063b25490b26215834bd2f363c8.tar.gz
kernel-qcow2-linux-6acc8b02517d7063b25490b26215834bd2f363c8.tar.xz
kernel-qcow2-linux-6acc8b02517d7063b25490b26215834bd2f363c8.zip
memcg: clean up swap accounting initialization code
Memcg swap accounting is currently enabled by enable_swap_cgroup when the root cgroup is created. mem_cgroup_init acts as a memcg subsystem initializer which sounds like a much better place for enable_swap_cgroup as well. We already register memsw files from there so it makes a lot of sense to merge those two into a single enable_swap_cgroup function. This patch doesn't introduce any semantic changes. Signed-off-by: Michal Hocko <mhocko@suse.cz> Cc: Zhouping Liu <zliu@redhat.com> Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: David Rientjes <rientjes@google.com> Cc: Li Zefan <lizefan@huawei.com> Cc: CAI Qian <caiqian@redhat.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions