Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747Ab0KAFu5 (ORCPT ); Mon, 1 Nov 2010 01:50:57 -0400 Received: from swampdragon.chaosbits.net ([90.184.90.115]:29581 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334Ab0KAFu4 (ORCPT ); Mon, 1 Nov 2010 01:50:56 -0400 Date: Mon, 1 Nov 2010 06:40:27 +0100 (CET) From: Jesper Juhl To: Balbir Singh cc: Minchan Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org 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> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 36 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/