summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2017-08-02 18:55:32 +0200
committerTejun Heo <tj@kernel.org>2017-08-02 21:05:20 +0200
commit5a621e6c958e057c727a30c502f28bf2bc04adfd (patch)
tree2266d383e2ab8e5ad86db5b0229c564197ee6e94 /kernel
parentcgroup: add cgroup.stat interface with basic hierarchy stats (diff)
downloadlinux-5a621e6c958e057c727a30c502f28bf2bc04adfd.tar.xz
linux-5a621e6c958e057c727a30c502f28bf2bc04adfd.zip
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
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index a06755a610e1..92e599796220 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5022,7 +5022,7 @@ static int cgroup_destroy_locked(struct cgroup *cgrp)
tcgrp->nr_dying_descendants++;
}
- cgroup1_check_for_release(cgroup_parent(cgrp));
+ cgroup1_check_for_release(parent);
/* put the base reference */
percpu_ref_kill(&cgrp->self.refcnt);