Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a63b9072 authored by Li Zefan's avatar Li Zefan Committed by Tejun Heo
Browse files

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 87d6a412
(vhost: fix attach to cgroups regression)

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent dcd6c922
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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 */