commit | a742c59de66ea080afa3edaf3428b3cdd5aa87cd | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Thu Dec 05 12:28:03 2013 -0500 |
committer | Tejun Heo <tj@kernel.org> | Thu Dec 05 12:28:03 2013 -0500 |
tree | 62611be278e8727cd24f86c07f245b949d2f6a6d | |
parent | 6e0755b08dd6a3b5260fafc6969268c2ba261300 [diff] |
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>