]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/cgroup/cgroup.c
cgroup: re-use the parent pointer in cgroup_destroy_locked()
authorRoman Gushchin <guro@fb.com>
Wed, 2 Aug 2017 16:55:32 +0000 (17:55 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 19:05:20 +0000 (12:05 -0700)
commit5a621e6c958e057c727a30c502f28bf2bc04adfd
tree2266d383e2ab8e5ad86db5b0229c564197ee6e94
parentec39225cca42c05ac36853d11d28f877fde5c42e
cgroup: re-use the parent pointer in cgroup_destroy_locked()

As we already have a pointer to the parent cgroup in
cgroup_destroy_locked(), we don't need to calculate it again
to pass as an argument for cgroup1_check_for_release().

Signed-off-by: Roman Gushchin <guro@fb.com>
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: kernel-team@fb.com
Cc: linux-kernel@vger.kernel.org
kernel/cgroup/cgroup.c