[Devel] [PATCH RHEL7 COMMIT] cgroup: unexport css_refcnt
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Jun 10 07:17:16 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.12
------>
commit dd45f6e68af3fa0002e263400a6b9d0c83d117c1
Author: Vladimir Davydov <vdavydov at parallels.com>
Date: Wed Jun 10 18:17:16 2015 +0400
cgroup: unexport css_refcnt
It was exported by 2d80bd703d282 ("ub: convert to cgroup") in order to
report ub reference counter here and there. It is not used any more, so
unexport it.
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
include/linux/cgroup.h | 2 --
kernel/cgroup.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 52fe02a..626bc84 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -168,8 +168,6 @@ static inline void css_put(struct cgroup_subsys_state *css)
__css_put(css);
}
-extern int css_refcnt(struct cgroup_subsys_state *css);
-
/* bits in struct cgroup flags field */
enum {
/* Control Group is dead */
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 0c6fb55..c376a87 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -223,7 +223,7 @@ static int css_unbias_refcnt(int refcnt)
}
/* the current nr of refs, always >= 0 whether @css is deactivated or not */
-int css_refcnt(struct cgroup_subsys_state *css)
+static int css_refcnt(struct cgroup_subsys_state *css)
{
int v = atomic_read(&css->refcnt);
More information about the Devel
mailing list