summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-02-07 12:28:03 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-02-14 15:26:17 +1100
commit788f94a8c10f3d33acd81bfd352be14da5f9d520 (patch)
tree8246a1c46805cb294d11bbe2a1a34cab64425897 /kernel
parentf9bea5b1c7b08fe48c1b9a9a25c03ec11f4d4524 (diff)
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> Cc: Li Zefan <lizefan@huawei.com> Signed-off-by: Andrew Morton <akpm@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 776ff752bfd8..525c50859643 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4582,10 +4582,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;