summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-02-27 17:03:49 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 19:10:14 -0800
commitc897ff68beec97768c31f9de97de93f77ff2d87e (patch)
tree662fb6102cdbe5c21905c588c6f867add374619d /kernel
parent644e1b90ef06611268b48a0a8d14a0ab990ab3f4 (diff)
downloadlinux-c897ff68beec97768c31f9de97de93f77ff2d87e.tar.gz
linux-c897ff68beec97768c31f9de97de93f77ff2d87e.tar.bz2
linux-c897ff68beec97768c31f9de97de93f77ff2d87e.zip
cgroup: don't use idr_remove_all()
idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index fb2fb11fbb25..888fba457bb3 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4618,10 +4618,8 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss)
offline_css(ss, dummytop);
ss->active = 0;
- if (ss->use_id) {
- idr_remove_all(&ss->idr);
+ if (ss->use_id)
idr_destroy(&ss->idr);
- }
/* deassign the subsys_id */
subsys[ss->subsys_id] = NULL;