summaryrefslogtreecommitdiff
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@fb.com>2016-06-02 13:02:49 -0400
committerTejun Heo <tj@kernel.org>2016-06-02 13:02:49 -0400
commitf29ff1159cf40c59d3611e02356985c791830795 (patch)
tree46c0ade5c0d6b7f79a5b6abe2e2441b93ec92200 /src/core/cgroup.h
parent201c1cc22a41df1f4ef7706bde41e2536bef433f (diff)
core: pass Unit into cgroup_context_apply() and use log_unit*()
cgroup_context_apply() and friends take CGroupContext and cgroup path as input and has no way of getting back to the associated Unit and thus uses raw cgroup path for logging. This makes the log messages difficult to track down. There's no reason to avoid passing in Unit into these functions. Pass in Unit and use log_unit*() instead. While at it, make cgroup_context_apply(), which has no outside users, static. Also, drop cgroup path from log messages where the path itself isn't too interesting and can be easily obtained from the unit.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index ff87adfba1..f21409bd5d 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -125,7 +125,6 @@ struct CGroupContext {
void cgroup_context_init(CGroupContext *c);
void cgroup_context_done(CGroupContext *c);
void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix);
-void cgroup_context_apply(CGroupContext *c, CGroupMask mask, const char *path, ManagerState state);
CGroupMask cgroup_context_get_mask(CGroupContext *c);