]> Pileus Git - ~andy/linux/commitdiff
cgroup: remove cgroup_attach_task_current_cg()
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 20 Jan 2012 03:58:09 +0000 (11:58 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 20 Jan 2012 17:30:07 +0000 (09:30 -0800)
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>
include/linux/cgroup.h

index e9b602151caf1ae4105c4c11023431aaabea7cb4..dee53bdb046d503d20d6307af636a7d51ebb60ab 100644 (file)
@@ -602,11 +602,6 @@ int cgroup_scan_tasks(struct cgroup_scanner *scan);
 int cgroup_attach_task(struct cgroup *, struct task_struct *);
 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
 
-static inline int cgroup_attach_task_current_cg(struct task_struct *tsk)
-{
-       return cgroup_attach_task_all(current, tsk);
-}
-
 /*
  * CSS ID is ID for cgroup_subsys_state structs under subsys. This only works
  * 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,
 {
        return 0;
 }
-static inline int cgroup_attach_task_current_cg(struct task_struct *t)
-{
-       return 0;
-}
 
 #endif /* !CONFIG_CGROUPS */