Browse Source

cgroups: add 'data' field to struct cgroup_scanner

We need to pass some data to test_task() or process_task() in some cases.
Will be used later.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Li Zefan 16 years ago
parent
commit
bd1a8ab73e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/linux/cgroup.h

+ 1 - 0
include/linux/cgroup.h

@@ -337,6 +337,7 @@ struct cgroup_scanner {
 	void (*process_task)(struct task_struct *p,
 	void (*process_task)(struct task_struct *p,
 			struct cgroup_scanner *scan);
 			struct cgroup_scanner *scan);
 	struct ptr_heap *heap;
 	struct ptr_heap *heap;
+	void *data;
 };
 };
 
 
 /*
 /*