diff options
author | Tejun Heo <tj@kernel.org> | 2013-06-12 21:04:48 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-13 10:55:17 -0700 |
commit | 3fc3db9a3ae0ce108badf31a4a00e41b4236f5fc (patch) | |
tree | 7067660f54e2c407cfd705fc3c36a14a6d9820dd | |
parent | d5c56ced775f6bdc32b689b01c9c4f9b66e18610 (diff) | |
download | talos-op-linux-3fc3db9a3ae0ce108badf31a4a00e41b4236f5fc.tar.gz talos-op-linux-3fc3db9a3ae0ce108badf31a4a00e41b4236f5fc.zip |
cgroup: remove now unused css_depth()
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
-rw-r--r-- | include/linux/cgroup.h | 1 | ||||
-rw-r--r-- | kernel/cgroup.c | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d0ad3794b947..5830592258dc 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -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 */ 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) } 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. |