From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754205Ab0J3XeF (ORCPT ); Sat, 30 Oct 2010 19:34:05 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:48821 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095Ab0J3XeC (ORCPT ); Sat, 30 Oct 2010 19:34:02 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wjpC+Clf4sVP5DtUTJ0jEh+TmKiKZGwnDhfRurywow0NrjMUskdI/MPGAm74JImjC/ 2uUrxa7DA/yDlUIrg+oD2hwAozqoCQ8mjLJww8NQYs4arc9acaQY2EYnideDlxt1bqNU Cb0w0Y7ojYhcIGyGyDRGlqMi3jP+jCIFuhqMY= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 31 Oct 2010 08:34:01 +0900 Message-ID: Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc From: Minchan Kim To: Jesper Juhl Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Kind regards, Minchan Kim From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id 9DB4A8D005B for ; Sat, 30 Oct 2010 19:34:02 -0400 (EDT) Received: by iwn38 with SMTP id 38so4518543iwn.14 for ; Sat, 30 Oct 2010 16:34:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 31 Oct 2010 08:34:01 +0900 Message-ID: Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc From: Minchan Kim Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org To: Jesper Juhl Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org List-ID: 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. -- Kind regards, Minchan Kim -- 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