[PATCH 8/8] cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()

2013-03-12 Thread Li Zefan
These two functions share most of the code. Signed-off-by: Li Zefan --- include/linux/cgroup.h | 3 +- kernel/cgroup.c| 153 ++--- kernel/cpuset.c| 2 +- 3 files changed, 45 insertions(+), 113 deletions(-) diff --git

[PATCH 8/8] cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()

2013-03-12 Thread Li Zefan
These two functions share most of the code. Signed-off-by: Li Zefan lize...@huawei.com --- include/linux/cgroup.h | 3 +- kernel/cgroup.c| 153 ++--- kernel/cpuset.c| 2 +- 3 files changed, 45 insertions(+), 113 deletions(-) diff