]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commita742c59de66ea080afa3edaf3428b3cdd5aa87cd
tree62611be278e8727cd24f86c07f245b949d2f6a6d
parent6e0755b08dd6a3b5260fafc6969268c2ba261300
cgroup: unify cgroup_write_X64() and cgroup_write_string()

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