cgroup: remove now unused css_depth()
authorTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 04:04:48 +0000 (21:04 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 17:55:17 +0000 (10:55 -0700)
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c

index d0ad3794b947cebfe50b9e9dedeed6305f803252..5830592258dc0052c780078f19f3c97b95294fc0 100644 (file)
@@ -848,7 +848,6 @@ bool css_is_ancestor(struct cgroup_subsys_state *cg,
 
 /* Get id and depth of css */
 unsigned short css_id(struct cgroup_subsys_state *css);
-unsigned short css_depth(struct cgroup_subsys_state *css);
 struct cgroup_subsys_state *cgroup_css_from_dir(struct file *f, int id);
 
 #else /* !CONFIG_CGROUPS */
index bc53d5014b2848b1df03d9346cb7e91d9e1dfc38..d4a329f5874c3ce86a5e210b54b2bda600ba1fdf 100644 (file)
@@ -5227,18 +5227,6 @@ unsigned short css_id(struct cgroup_subsys_state *css)
 }
 EXPORT_SYMBOL_GPL(css_id);
 
-unsigned short css_depth(struct cgroup_subsys_state *css)
-{
-       struct css_id *cssid;
-
-       cssid = rcu_dereference_check(css->id, css_refcnt(css));
-
-       if (cssid)
-               return cssid->depth;
-       return 0;
-}
-EXPORT_SYMBOL_GPL(css_depth);
-
 /**
  *  css_is_ancestor - test "root" css is an ancestor of "child"
  * @child: the css to be tested.