Re: [PATCH] cgroup: prefer [kv]zalloc over [kv]malloc+memset in memory controller code.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Weiner
Date: Monday, November 1, 2010 - 1:01 pm

On Mon, Nov 01, 2010 at 08:40:56PM +0100, Jesper Juhl wrote:

Looks good to me, but there is also the memset after kmalloc in
alloc_mem_cgroup_per_zone_info().  Can you switch that over as well in
this patch?  You can pass __GFP_ZERO to kmalloc_node() for zeroing.

Thanks!
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] cgroup: prefer [kv]zalloc over [kv]malloc+mems ..., Hiroyuki Kamezawa, (Mon Nov 1, 12:58 pm)
Re: [PATCH] cgroup: prefer [kv]zalloc over [kv]malloc+mems ..., Johannes Weiner, (Mon Nov 1, 1:01 pm)