diff options
-rw-r--r-- | include/linux/cgroup.h | 15 |
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); | |||
403 | int cgroup_scan_tasks(struct cgroup_scanner *scan); | 403 | int cgroup_scan_tasks(struct cgroup_scanner *scan); |
404 | int cgroup_attach_task(struct cgroup *, struct task_struct *); | 404 | int cgroup_attach_task(struct cgroup *, struct task_struct *); |
405 | 405 | ||
406 | void cgroup_mm_owner_callbacks(struct task_struct *old, | ||
407 | struct task_struct *new); | ||
408 | |||
406 | #else /* !CONFIG_CGROUPS */ | 409 | #else /* !CONFIG_CGROUPS */ |
407 | 410 | ||
408 | static inline int cgroup_init_early(void) { return 0; } | 411 | static 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 | ||
427 | static 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 | ||
427 | extern void | ||
428 | cgroup_mm_owner_callbacks(struct task_struct *old, struct task_struct *new); | ||
429 | #else /* !CONFIG_MM_OWNER */ | ||
430 | static inline void | ||
431 | cgroup_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 */ |