aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 8ab91880a0ad..8b00f6643e93 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -403,6 +403,9 @@ void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it);
403int cgroup_scan_tasks(struct cgroup_scanner *scan); 403int cgroup_scan_tasks(struct cgroup_scanner *scan);
404int cgroup_attach_task(struct cgroup *, struct task_struct *); 404int cgroup_attach_task(struct cgroup *, struct task_struct *);
405 405
406void cgroup_mm_owner_callbacks(struct task_struct *old,
407 struct task_struct *new);
408
406#else /* !CONFIG_CGROUPS */ 409#else /* !CONFIG_CGROUPS */
407 410
408static inline int cgroup_init_early(void) { return 0; } 411static inline int cgroup_init_early(void) { return 0; }
@@ -421,15 +424,9 @@ static inline int cgroupstats_build(struct cgroupstats *stats,
421 return -EINVAL; 424 return -EINVAL;
422} 425}
423 426
427static inline void cgroup_mm_owner_callbacks(struct task_struct *old,
428 struct task_struct *new) {}
429
424#endif /* !CONFIG_CGROUPS */ 430#endif /* !CONFIG_CGROUPS */
425 431
426#ifdef CONFIG_MM_OWNER
427extern void
428cgroup_mm_owner_callbacks(struct task_struct *old, struct task_struct *new);
429#else /* !CONFIG_MM_OWNER */
430static inline void
431cgroup_mm_owner_callbacks(struct task_struct *old, struct task_struct *new)
432{
433}
434#endif /* CONFIG_MM_OWNER */
435#endif /* _LINUX_CGROUP_H */ 432#endif /* _LINUX_CGROUP_H */