diff options
author | Roman Gushchin <[email protected]> | 2017-08-02 17:55:32 +0100 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2017-08-02 12:05:20 -0700 |
commit | 5a621e6c958e057c727a30c502f28bf2bc04adfd (patch) | |
tree | 2266d383e2ab8e5ad86db5b0229c564197ee6e94 | |
parent | ec39225cca42c05ac36853d11d28f877fde5c42e (diff) |
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 <[email protected]>
Suggested-by: Tejun Heo <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: [email protected]
Cc: [email protected]
-rw-r--r-- | kernel/cgroup/cgroup.c | 2 |
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); |