From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Juhl Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc Date: Mon, 1 Nov 2010 06:40:27 +0100 (CET) Message-ID: References: <20101031173336.GA28141@balbir.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101031173336.GA28141-SINUvgVNF2CyUtPGxGje5AC/G2K4zDHf@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Balbir Singh Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Paul Menage List-Id: containers.vger.kernel.org On Sun, 31 Oct 2010, Balbir Singh wrote: > * MinChan Kim [2010-10-31 08:34:01]: > > > On Sun, Oct 31, 2010 at 6:35 AM, Jesper Juhl wrote: > > > Hi, > > > > > > We can avoid doing a memset in swap_cgroup_swapon() by using vzalloc(). > > > > > > > > > Signed-off-by: Jesper Juhl > > Reviewed-by: Minchan Kim > > > > There are so many placed need vzalloc. > > Thanks, Jesper. > > Yes, please check memcontrol.c as well > I will shortly, I'm slowly working my way through a mountain of code checking for this. I'll get to memcontrol.c > > Acked-by: Balbir Singh > Thanks. -- Jesper Juhl http://www.chaosbits.net/ Plain text mails only, please http://www.expita.com/nomime.html Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html