projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec39225
)
cgroup: re-use the parent pointer in cgroup_destroy_locked()
author
Roman Gushchin
<
[email protected]
>
Wed, 2 Aug 2017 16:55:32 +0000
(17:55 +0100)
committer
Tejun Heo
<
[email protected]
>
Wed, 2 Aug 2017 19:05:20 +0000
(12:05 -0700)
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]
kernel/cgroup/cgroup.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup/cgroup.c
b/kernel/cgroup/cgroup.c
index a06755a610e1388d7c281cfa417223e664ec6d88..92e59979622089daa80280e18608c531f7b16cb7 100644
(file)
--- 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);