[PATCH -mm] remove node_ prefix_from ns subsystem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cedric Le Goater
Date: Wednesday, May 21, 2008 - 8:47 am

From: Cedric Le Goater <clg@fr.ibm.com>

This is a slight change in the namespace cgroup subsystem api.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
---
 kernel/cgroup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: 2.6.26-rc2-mm1/kernel/cgroup.c
===================================================================
--- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
+++ 2.6.26-rc2-mm1/kernel/cgroup.c
@@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
 	cg = tsk->cgroups;
 	parent = task_cgroup(tsk, subsys->subsys_id);
 
-	snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
+	snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
 
 	/* Pin the hierarchy */
 	atomic_inc(&parent->root->sb->s_active);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm] remove node_ prefix_from ns subsystem, Cedric Le Goater, (Wed May 21, 8:47 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Serge E. Hallyn, (Wed May 21, 1:03 pm)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Andrew Morton, (Wed May 21, 10:06 pm)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Paul Menage, (Thu May 22, 12:11 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Andrew Morton, (Thu May 22, 12:32 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Cedric Le Goater, (Thu May 22, 12:36 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Andrew Morton, (Thu May 22, 1:10 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Paul Menage, (Thu May 22, 1:23 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Andrew Morton, (Thu May 22, 1:36 am)
Re: [PATCH -mm] remove node_ prefix_from ns subsystem, Cedric Le Goater, (Thu May 22, 2:21 am)