summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-12-05 12:28:02 -0500
committerTejun Heo <tj@kernel.org>2013-12-05 12:28:02 -0500
commit51ffe41178c49738e4d6d17b9bdcf528a262abc8 (patch)
tree62f8db88b98474925f3d34607e58c762c634a07a /ipc
parent44ffc75ba9a63f972dbebd4fab6888db5fcd3b0e (diff)
cpuset: convert away from cftype->read()
In preparation of conversion to kernfs, cgroup file handling is being consolidated so that it can be easily mapped to the seq_file based interface of kernfs. All users of cftype->read() can be easily served, usually better, by seq_file and other methods. Rename cpuset_common_file_read() to cpuset_common_read_seq_string() and convert it to use read_seq_string() interface instead. This not only simplifies the code but also makes it more versatile. Before, the file couldn't output if the result is longer than PAGE_SIZE. After the conversion, seq_file automatically grows the buffer until the output can fit. This patch doesn't make any visible behavior changes except for being able to handle output larger than PAGE_SIZE. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions