From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756434Ab0JaRdp (ORCPT ); Sun, 31 Oct 2010 13:33:45 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:41439 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756219Ab0JaRdn (ORCPT ); Sun, 31 Oct 2010 13:33:43 -0400 Date: Sun, 31 Oct 2010 23:03:36 +0530 From: Balbir Singh To: Minchan Kim Cc: Jesper Juhl , 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 Message-ID: <20101031173336.GA28141@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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 Acked-by: Balbir Singh -- Three Cheers, Balbir 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 ESMTP id 737A86B0171 for ; Sun, 31 Oct 2010 13:33:49 -0400 (EDT) Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e37.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o9VHVUfo019630 for ; Sun, 31 Oct 2010 11:31:30 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9VHXfkW139804 for ; Sun, 31 Oct 2010 11:33:41 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9VHXeKi012213 for ; Sun, 31 Oct 2010 11:33:40 -0600 Date: Sun, 31 Oct 2010 23:03:36 +0530 From: Balbir Singh Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc Message-ID: <20101031173336.GA28141@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: Jesper Juhl , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org List-ID: * 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 Acked-by: Balbir Singh -- Three Cheers, Balbir -- 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