cgroup: use kzalloc() instead of kmalloc()
authorTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 04:04:51 +0000 (21:04 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 17:55:17 +0000 (10:55 -0700)
commitf4f4be2bd2889c69a8698edef8dbfd4f6759aa87
tree4f9bca9bc566527b44b5f3d87fbd93e3de18715a
parent69d0206c793a17431eacee2694ee7a4b25df76b7
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>
kernel/cgroup.c
This page took 0.025606 seconds and 5 git commands to generate.