From: Tejun Heo Date: Tue, 13 May 2014 16:16:22 +0000 (-0400) Subject: cgroup: convert "tasks" and "cgroup.procs" handle to use cftype->write() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acbef755f40e204b8a6503fa79958d51a898762a;p=pandora-kernel.git cgroup: convert "tasks" and "cgroup.procs" handle to use cftype->write() cgroup_tasks_write() and cgroup_procs_write() are currently using cftype->write_u64(). This patch converts them to use cftype->write() instead. This allows access to the associated kernfs_open_file which will be necessary to implement the planned kernfs active protection manipulation for these files. This shifts buffer parsing to attach_task_by_pid() and makes it return @nbytes on success. Let's rename it to __cgroup_procs_write() to clearly indicate that this is a write handler implementation. This patch doesn't introduce any visible behavior changes. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed