[Devel] [PATCH rh7 5/5] cgroup: unexport css_refcnt

Vladimir Davydov vdavydov at parallels.com
Tue Jun 9 08:15:01 PDT 2015


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 52fe02af71b5..626bc84af240 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 c5d7362afed8..db5c726557b4 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);
 
-- 
2.1.4




More information about the Devel mailing list