diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-13 12:16:22 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-13 12:16:22 -0400 |
commit | acbef755f40e204b8a6503fa79958d51a898762a (patch) | |
tree | 5b33ea4cafb8df1b90d0dbb7e10503d4d5bc20b9 /include | |
parent | 6770c64e5c8da4705d1f0973bdeb5c2bf4f3a404 (diff) | |
download | linux-acbef755f40e204b8a6503fa79958d51a898762a.tar.gz linux-acbef755f40e204b8a6503fa79958d51a898762a.tar.bz2 linux-acbef755f40e204b8a6503fa79958d51a898762a.zip |
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 <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions