projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6213daa
)
cgroup: remove redundant code in cgroup_rmdir()
author
Li Zefan
<lizefan@huawei.com>
Wed, 17 Sep 2014 10:18:34 +0000
(18:18 +0800)
committer
Tejun Heo
<tj@kernel.org>
Wed, 17 Sep 2014 21:34:15 +0000
(06:34 +0900)
We no longer clear kn->priv in cgroup_rmdir(), so we don't need
to get an extra refcnt.
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/cgroup.c
b/kernel/cgroup.c
index 619aae399a3a2ba6928f91d4ec3ce0b87bebfbe0..d739a732edb93858b5e3e13c9666868c2615ad25 100644
(file)
--- a/
kernel/cgroup.c
+++ b/
kernel/cgroup.c
@@
-4841,13
+4841,10
@@
static int cgroup_rmdir(struct kernfs_node *kn)
cgrp = cgroup_kn_lock_live(kn);
if (!cgrp)
return 0;
- cgroup_get(cgrp); /* for @kn->priv clearing */
ret = cgroup_destroy_locked(cgrp);
cgroup_kn_unlock(kn);
-
- cgroup_put(cgrp);
return ret;
}