aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-06-13 00:04:48 -0400
committerTejun Heo <tj@kernel.org>2013-06-13 13:55:17 -0400
commit3fc3db9a3ae0ce108badf31a4a00e41b4236f5fc (patch)
tree7067660f54e2c407cfd705fc3c36a14a6d9820dd /kernel
parentd5c56ced775f6bdc32b689b01c9c4f9b66e18610 (diff)
cgroup: remove now unused css_depth()
Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index bc53d5014b28..d4a329f5874c 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -5227,18 +5227,6 @@ unsigned short css_id(struct cgroup_subsys_state *css)
5227} 5227}
5228EXPORT_SYMBOL_GPL(css_id); 5228EXPORT_SYMBOL_GPL(css_id);
5229 5229
5230unsigned short css_depth(struct cgroup_subsys_state *css)
5231{
5232 struct css_id *cssid;
5233
5234 cssid = rcu_dereference_check(css->id, css_refcnt(css));
5235
5236 if (cssid)
5237 return cssid->depth;
5238 return 0;
5239}
5240EXPORT_SYMBOL_GPL(css_depth);
5241
5242/** 5230/**
5243 * css_is_ancestor - test "root" css is an ancestor of "child" 5231 * css_is_ancestor - test "root" css is an ancestor of "child"
5244 * @child: the css to be tested. 5232 * @child: the css to be tested.