diff options
author | Tejun Heo <tj@kernel.org> | 2013-05-24 10:55:38 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-05-24 10:55:38 +0900 |
commit | bdc7119f1bdd0632d42f435941dc290216a436e7 (patch) | |
tree | 3e33099f7e22b637e3ffa9f558938e92e94fd9a6 /kernel/cgroup.c | |
parent | 3f33e64f4a212771a0b5c63eddaa7f81e65223e3 (diff) | |
download | blackbird-op-linux-bdc7119f1bdd0632d42f435941dc290216a436e7.tar.gz blackbird-op-linux-bdc7119f1bdd0632d42f435941dc290216a436e7.zip |
cgroup: make cgroup_is_removed() static
cgroup_is_removed() no longer has external users and it shouldn't grow
any - controllers should deal with cgroup_subsys_state on/offline
state instead of cgroup removal state. Make it static.
While at it, make it return bool.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index a19419f4af1a..501974823b33 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -226,7 +226,7 @@ static int css_refcnt(struct cgroup_subsys_state *css) } /* convenient tests for these bits */ -inline int cgroup_is_removed(const struct cgroup *cgrp) +static inline bool cgroup_is_removed(const struct cgroup *cgrp) { return test_bit(CGRP_REMOVED, &cgrp->flags); } |