From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id 1F7896B0169 for ; Mon, 1 Nov 2010 01:50:58 -0400 (EDT) Date: Mon, 1 Nov 2010 06:40:27 +0100 (CET) From: Jesper Juhl Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc In-Reply-To: <20101031173336.GA28141@balbir.in.ibm.com> Message-ID: References: <20101031173336.GA28141@balbir.in.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Balbir Singh Cc: Minchan Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org List-ID: 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org