diff options
author | Tejun Heo | 2015-01-06 18:02:46 +0100 |
---|---|---|
committer | Tejun Heo | 2015-01-06 18:02:46 +0100 |
commit | f3ba53802eff25e3eedb60d7afe5262710e20bd5 (patch) | |
tree | 0b03a5bb27e414a5df2299168f7dda25b08ee763 /include/linux | |
parent | cgroup: reorder SUBSYS(blkio) in cgroup_subsys.h (diff) | |
download | kernel-qcow2-linux-f3ba53802eff25e3eedb60d7afe5262710e20bd5.tar.gz kernel-qcow2-linux-f3ba53802eff25e3eedb60d7afe5262710e20bd5.tar.xz kernel-qcow2-linux-f3ba53802eff25e3eedb60d7afe5262710e20bd5.zip |
cgroup: add dummy css_put() for !CONFIG_CGROUPS
This will later be depended upon by the scheduled cgroup writeback
support.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index da0dae0600e6..b9cb94c3102a 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, #else /* !CONFIG_CGROUPS */ +struct cgroup_subsys_state; + static inline int cgroup_init_early(void) { return 0; } static inline int cgroup_init(void) { return 0; } static inline void cgroup_fork(struct task_struct *p) {} @@ -955,6 +957,8 @@ static inline int cgroupstats_build(struct cgroupstats *stats, return -EINVAL; } +static inline void css_put(struct cgroup_subsys_state *css) {} + /* No cgroups - nothing to do */ static inline int cgroup_attach_task_all(struct task_struct *from, struct task_struct *t) |