From: Jesper Juhl Date: Thu, 13 Jan 2011 23:47:42 +0000 (-0800) Subject: memcg: use [kv]zalloc[_node] rather than [kv]malloc+memset X-Git-Tag: v2.6.38-rc1~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17295c88a160c6eea3fcf46cec9d08a0fcb02db9;p=pandora-kernel.git memcg: use [kv]zalloc[_node] rather than [kv]malloc+memset 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. Signed-off-by: Jesper Juhl Cc: KAMEZAWA Hiroyuki Cc: Minchan Kim Cc: Wu Fengguang Cc: Balbir Singh Cc: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed