cgroup: unify cgroup_write_X64() and cgroup_write_string()
authorTejun Heo <tj@kernel.org>
Thu, 5 Dec 2013 17:28:03 +0000 (12:28 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 5 Dec 2013 17:28:03 +0000 (12:28 -0500)
cgroup_write_X64() and cgroup_write_string() both implement about the
same buffering logic.  Unify the two into cgroup_file_write() which
always allocates dynamic buffer for simplicity and uses kstrto*()
instead of simple_strto*().

This patch doesn't make any visible behavior changes except for
possibly different error value from kstrsto*().

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c

diff --cc kernel/cgroup.c
Simple merge