diff options
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 9e9b7efa180b..87479328d46d 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/cpumask.h> | 13 | #include <linux/cpumask.h> |
14 | #include <linux/nodemask.h> | 14 | #include <linux/nodemask.h> |
15 | #include <linux/rcupdate.h> | 15 | #include <linux/rcupdate.h> |
16 | #include <linux/cgroupstats.h> | ||
16 | 17 | ||
17 | #ifdef CONFIG_CGROUPS | 18 | #ifdef CONFIG_CGROUPS |
18 | 19 | ||
@@ -29,6 +30,8 @@ extern void cgroup_fork(struct task_struct *p); | |||
29 | extern void cgroup_fork_callbacks(struct task_struct *p); | 30 | extern void cgroup_fork_callbacks(struct task_struct *p); |
30 | extern void cgroup_post_fork(struct task_struct *p); | 31 | extern void cgroup_post_fork(struct task_struct *p); |
31 | extern void cgroup_exit(struct task_struct *p, int run_callbacks); | 32 | extern void cgroup_exit(struct task_struct *p, int run_callbacks); |
33 | extern int cgroupstats_build(struct cgroupstats *stats, | ||
34 | struct dentry *dentry); | ||
32 | 35 | ||
33 | extern struct file_operations proc_cgroup_operations; | 36 | extern struct file_operations proc_cgroup_operations; |
34 | 37 | ||
@@ -313,6 +316,11 @@ static inline void cgroup_exit(struct task_struct *p, int callbacks) {} | |||
313 | 316 | ||
314 | static inline void cgroup_lock(void) {} | 317 | static inline void cgroup_lock(void) {} |
315 | static inline void cgroup_unlock(void) {} | 318 | static inline void cgroup_unlock(void) {} |
319 | static inline int cgroupstats_build(struct cgroupstats *stats, | ||
320 | struct dentry *dentry) | ||
321 | { | ||
322 | return -EINVAL; | ||
323 | } | ||
316 | 324 | ||
317 | #endif /* !CONFIG_CGROUPS */ | 325 | #endif /* !CONFIG_CGROUPS */ |
318 | 326 | ||