[Devel] [PATCH RHEL7 COMMIT] ms/cgroup: remove now unused css_depth()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Aug 31 06:01:11 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-229.7.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.6.4
------>
commit 8999360445307b87d687dac0b551d21e02386426
Author: Tejun Heo <tj at kernel.org>
Date: Wed Jun 12 21:04:48 2013 -0700
ms/cgroup: remove now unused css_depth()
Signed-off-by: Tejun Heo <tj at kernel.org>
Acked-by: Li Zefan <lizefan at huawei.com>
---
include/linux/cgroup.h | 1 -
kernel/cgroup.c | 12 ------------
2 files changed, 13 deletions(-)
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index b7eb28f..44b64c9 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -884,7 +884,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 b5a603c..d96176e 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -5296,18 +5296,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.
More information about the Devel
mailing list