Skip to contentSkip to conversation

cgroup: remove unused parameter in cgroup_task_migrate().

PATCH Superseded Kevin Wilson 2 participants 2 messages Mar 31, 2013 – Apr 1, 2013 1 message not in the archive cgroup

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup: remove unused parameter in cgroup_task_migrate().

This patch removes unused parameter from cgroup_task_migrate().

---
 kernel/cgroup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/cgroup.c +3 -3
index a32f943..33fd0b4 100644
@@ -1900,7 +1900,7 @@ EXPORT_SYMBOL_GPL(cgroup_taskset_size);
  *
  * Must be called with cgroup_mutex and threadgroup locked.
  */
-static void cgroup_task_migrate(struct cgroup *cgrp, struct cgroup *oldcgrp,
+static void cgroup_task_migrate(struct cgroup *oldcgrp,
 				struct task_struct *tsk, struct css_set *newcg)
 {
 	struct css_set *oldcg;
@@ -1983,7 +1983,7 @@ int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk)
 		goto out;
 	}
 
-	cgroup_task_migrate(cgrp, oldcgrp, tsk, newcg);
+	cgroup_task_migrate(oldcgrp, tsk, newcg);
 
 	for_each_subsys(root, ss) {
 		if (ss->attach)
@@ -2143,7 +2143,7 @@ static int cgroup_attach_proc(struct cgroup *cgrp, struct task_struct *leader)
 	 */
 	for (i = 0; i < group_size; i++) {
 		tc = flex_array_get(group, i);
-		cgroup_task_migrate(cgrp, tc->cgrp, tc->task, tc->cg);
+		cgroup_task_migrate(tc->cgrp, tc->task, tc->cg);
 	}
 	/* nothing is sensitive to fork() after this point. */
 
Signature · 1 line
1.8.1.4

A message that is not in the archive (sent off-list or not yet received): 1364764090-26369-1-git-send-email-wkevils-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Acked-by
#2 lore raw
Quoted 3 lines · Kevin Wilson

This patch removes unused parameter from cgroup_task_migrate().

But you have to rebase this patch against Tejun's cgroup tree, as this patch conflicts with "cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()"

http://git.kernel.org/cgit/linux/kernel/git/tj/cgroup.git/commit/?h=for-next&id=081aa458c38ba576bdd4265fc807fa95b48b9e79