All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] cpuset: use cgroup_path() in proc_cpuset_show()
@ 2008-11-21  8:49 Lai Jiangshan
  2008-11-21 18:56 ` Paul Menage
       [not found] ` <4926762E.9010207-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Lai Jiangshan @ 2008-11-21  8:49 UTC (permalink / raw)
  To: Andrew Morton, Paul Menage, Linux Kernel Mailing List,
	Linux Containers


use cgroup_path() instead of
task_subsys_state(tsk, cpuset_subsys_id)->cgroup

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 3e00526..e0e087e 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2387,7 +2386,7 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
 	struct pid *pid;
 	struct task_struct *tsk;
 	char *buf;
-	struct cgroup_subsys_state *css;
+	struct cgroup *cgp;
 	int retval;
 
 	retval = -ENOMEM;
@@ -2403,8 +2402,8 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
 
 	retval = -EINVAL;
 	cgroup_lock();
-	css = task_subsys_state(tsk, cpuset_subsys_id);
-	retval = cgroup_path(css->cgroup, buf, PAGE_SIZE);
+	cgp = task_cgroup(tsk, cpuset_subsys_id);
+	retval = cgroup_path(cgp, buf, PAGE_SIZE);
 	if (retval < 0)
 		goto out_unlock;
 	seq_puts(m, buf);



^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH 2/2] cpuset: use cgroup_path() in proc_cpuset_show()
@ 2008-11-21  8:49 Lai Jiangshan
  0 siblings, 0 replies; 4+ messages in thread
From: Lai Jiangshan @ 2008-11-21  8:49 UTC (permalink / raw)
  To: Andrew Morton, Paul Menage, Linux Kernel Mailing List,
	Linux Containers


use cgroup_path() instead of
task_subsys_state(tsk, cpuset_subsys_id)->cgroup

Signed-off-by: Lai Jiangshan <laijs-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 3e00526..e0e087e 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2387,7 +2386,7 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
 	struct pid *pid;
 	struct task_struct *tsk;
 	char *buf;
-	struct cgroup_subsys_state *css;
+	struct cgroup *cgp;
 	int retval;
 
 	retval = -ENOMEM;
@@ -2403,8 +2402,8 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
 
 	retval = -EINVAL;
 	cgroup_lock();
-	css = task_subsys_state(tsk, cpuset_subsys_id);
-	retval = cgroup_path(css->cgroup, buf, PAGE_SIZE);
+	cgp = task_cgroup(tsk, cpuset_subsys_id);
+	retval = cgroup_path(cgp, buf, PAGE_SIZE);
 	if (retval < 0)
 		goto out_unlock;
 	seq_puts(m, buf);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-21 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21  8:49 [PATCH 2/2] cpuset: use cgroup_path() in proc_cpuset_show() Lai Jiangshan
2008-11-21 18:56 ` Paul Menage
     [not found] ` <4926762E.9010207-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-11-21 18:56   ` Paul Menage
  -- strict thread matches above, loose matches on Subject: below --
2008-11-21  8:49 Lai Jiangshan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.