[PATCH] cgroup: prefer [kv]zalloc over [kv]malloc+memset in memory controller code.
minchan.kim at gmail.com
Mon Nov 1 16:11:42 PDT 2010
On Tue, Nov 2, 2010 at 4:35 AM, Jesper Juhl <jj at chaosbits.net> wrote:
> Hi (please CC me on replies),
> In mem_cgroup_alloc() we currently do either kmalloc() or vmalloc() then
> followed by memset() to zero the memory. This can be more efficiently
> achieved by using kzalloc() and vzalloc().
> Signed-off-by: Jesper Juhl <jj at chaosbits.net>
Reviewed-by: Minchan Kim <minchan.kim at gmail.com>
More information about the Containers