Re: [PATCH v2] cgroup: prefer [kv]zalloc[_node] over [kv]malloc+memsetin memory controller code.

From: Li Zefan
Date: Thu Nov 04 2010 - 16:35:14 EST


> 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().
> There's also one situation where we can use kzalloc_node() - this is
> what's new in this version of the patch.
>
> The original patch was:
>
> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx>
> Reviewed-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
> Acked-by: Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx>
>
> Here's version 2. I'd appreciate it if someone could merge it, but I don't
> know who that someone would be.
>

Normally it's Andrew Morton.

btw, a better title is: [...] memcgroup: prefer ... over ... memset
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/