diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2012-01-19 22:58:09 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-01-20 12:30:07 -0500 |
commit | a63b9072ea4e32c1fde8b783ccf6e4288414660b (patch) | |
tree | 54403c1e791a34472357f643b2cbfec761a41b4b /include/linux/cgroup.h | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
cgroup: remove cgroup_attach_task_current_cg()
It's just a wrapper of cgroup_attach_task_all(), and it's no longer
used after commit 87d6a412bd1ed82c14cabd4b408003b23bbd2880
(vhost: fix attach to cgroups regression)
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index e9b602151caf..dee53bdb046d 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -602,11 +602,6 @@ int cgroup_scan_tasks(struct cgroup_scanner *scan); | |||
602 | int cgroup_attach_task(struct cgroup *, struct task_struct *); | 602 | int cgroup_attach_task(struct cgroup *, struct task_struct *); |
603 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); | 603 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); |
604 | 604 | ||
605 | static inline int cgroup_attach_task_current_cg(struct task_struct *tsk) | ||
606 | { | ||
607 | return cgroup_attach_task_all(current, tsk); | ||
608 | } | ||
609 | |||
610 | /* | 605 | /* |
611 | * CSS ID is ID for cgroup_subsys_state structs under subsys. This only works | 606 | * CSS ID is ID for cgroup_subsys_state structs under subsys. This only works |
612 | * if cgroup_subsys.use_id == true. It can be used for looking up and scanning. | 607 | * if cgroup_subsys.use_id == true. It can be used for looking up and scanning. |
@@ -669,10 +664,6 @@ static inline int cgroup_attach_task_all(struct task_struct *from, | |||
669 | { | 664 | { |
670 | return 0; | 665 | return 0; |
671 | } | 666 | } |
672 | static inline int cgroup_attach_task_current_cg(struct task_struct *t) | ||
673 | { | ||
674 | return 0; | ||
675 | } | ||
676 | 667 | ||
677 | #endif /* !CONFIG_CGROUPS */ | 668 | #endif /* !CONFIG_CGROUPS */ |
678 | 669 | ||