diff options
author | Li Zefan <lizefan@huawei.com> | 2014-09-17 18:18:34 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-18 06:34:15 +0900 |
commit | 244bb9a6336d2aa53526261ec35c593ebd5c1a33 (patch) | |
tree | fdda4212c1868fe2c9d0b0339c1a5aff64f08683 /kernel/cgroup.c | |
parent | 6213daab2547fdc0d02a86abf3ac209ac6881ae3 (diff) | |
download | op-kernel-dev-244bb9a6336d2aa53526261ec35c593ebd5c1a33.zip op-kernel-dev-244bb9a6336d2aa53526261ec35c593ebd5c1a33.tar.gz |
cgroup: remove redundant code in cgroup_rmdir()
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 619aae3..d739a73 100644 --- 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; } |