summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo2013-06-13 06:04:51 +0200
committerTejun Heo2013-06-13 19:55:17 +0200
commitf4f4be2bd2889c69a8698edef8dbfd4f6759aa87 (patch)
tree4f9bca9bc566527b44b5f3d87fbd93e3de18715a /include/linux/cgroup.h
parentcgroup: bring some sanity to naming around cg_cgroup_link (diff)
downloadkernel-qcow2-linux-f4f4be2bd2889c69a8698edef8dbfd4f6759aa87.tar.gz
kernel-qcow2-linux-f4f4be2bd2889c69a8698edef8dbfd4f6759aa87.tar.xz
kernel-qcow2-linux-f4f4be2bd2889c69a8698edef8dbfd4f6759aa87.zip
cgroup: use kzalloc() instead of kmalloc()
There's no point in using kmalloc() instead of the clearing variant for trivial stuff. We can live dangerously elsewhere. Use kzalloc() instead and drop 0 inits. While at it, do trivial code reorganization in cgroup_file_open(). This patch doesn't introduce any functional changes. v2: I was caught in the very distant past where list_del() didn't poison and the initial version converted list_del()s to list_del_init()s too. Li and Kent took me out of the stasis chamber. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Kent Overstreet <koverstreet@google.com> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include/linux/cgroup.h')
0 files changed, 0 insertions, 0 deletions