mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
kernel/cgroup.c: make 2 functions static
cgroup_is_releasable() and notify_on_release() should be static, not global inline. Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8dc4f3e17d
commit
e9685a03c8
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ enum {
|
||||||
ROOT_NOPREFIX, /* mounted subsystems have no named prefix */
|
ROOT_NOPREFIX, /* mounted subsystems have no named prefix */
|
||||||
};
|
};
|
||||||
|
|
||||||
inline int cgroup_is_releasable(const struct cgroup *cgrp)
|
static int cgroup_is_releasable(const struct cgroup *cgrp)
|
||||||
{
|
{
|
||||||
const int bits =
|
const int bits =
|
||||||
(1 << CGRP_RELEASABLE) |
|
(1 << CGRP_RELEASABLE) |
|
||||||
|
@ -149,7 +149,7 @@ inline int cgroup_is_releasable(const struct cgroup *cgrp)
|
||||||
return (cgrp->flags & bits) == bits;
|
return (cgrp->flags & bits) == bits;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int notify_on_release(const struct cgroup *cgrp)
|
static int notify_on_release(const struct cgroup *cgrp)
|
||||||
{
|
{
|
||||||
return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags);
|
return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue