Skip to content

Commit

Permalink
cgroup: remove now unused css_depth()
Browse files Browse the repository at this point in the history
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
  • Loading branch information
Tejun Heo committed Jun 13, 2013
1 parent d5c56ce commit 3fc3db9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
12 changes: 0 additions & 12 deletions kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3fc3db9

Please sign in to comment.