linux/kernel/cgroup
Tejun Heo 633feee310 cgroup: refactor mount path and clearly distinguish v1 and v2 paths
While sharing some mechanisms, the mount paths of v1 and v2 are
substantially different.  Their implementations were mixed in
cgroup_mount().  This patch splits them out so that they're easier to
follow and organize.

This patch causes one functional change - the WARN_ON(new_sb) gets
lost.  This is because the actual mounting gets moved to
cgroup_do_mount() and thus @new_sb is no longer accessible by default
to cgroup1_mount().  While we can add it as an explicit out parameter
to cgroup_do_mount(), this part of code hasn't changed and the warning
hasn't triggered for quite a while.  Dropping it should be fine.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
2016-12-27 14:49:07 -05:00
..
cgroup-internal.h cgroup: move cgroup v1 specific code to kernel/cgroup/cgroup-v1.c 2016-12-27 14:49:06 -05:00
cgroup-v1.c cgroup: move cgroup v1 specific code to kernel/cgroup/cgroup-v1.c 2016-12-27 14:49:06 -05:00
cgroup.c cgroup: refactor mount path and clearly distinguish v1 and v2 paths 2016-12-27 14:49:07 -05:00
cpuset.c
freezer.c
Makefile cgroup: move cgroup v1 specific code to kernel/cgroup/cgroup-v1.c 2016-12-27 14:49:06 -05:00
pids.c