]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cgroup: separate out cgroup1_kf_syscall_ops
authorTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:07 +0000 (14:49 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:07 +0000 (14:49 -0500)
commitfa069904dd38c2d8e121a3c7e37f8daaddb6dafa
tree770d75ea020938331ac3d2150ea1ec3848d7a067
parent633feee310de6b6c3191011140b88fe772f560cf
cgroup: separate out cgroup1_kf_syscall_ops

Currently, cgroup_kf_syscall_ops is shared by v1 and v2 and the
specific methods test the version and take different actions.  Split
out v1 functions and put them in cgroup1_kf_syscall_ops and remove the
now unnecessary explicit branches in specific methods.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c