From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755865Ab0KCPsJ (ORCPT ); Wed, 3 Nov 2010 11:48:09 -0400 Received: from mail.perches.com ([173.55.12.10]:3950 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752617Ab0KCPsH (ORCPT ); Wed, 3 Nov 2010 11:48:07 -0400 Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc From: Joe Perches To: jovi zhang Cc: Christoph Lameter , Jesper Juhl , Balbir Singh , Minchan Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org In-Reply-To: References: <20101031173336.GA28141@balbir.in.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Nov 2010 08:48:04 -0700 Message-ID: <1288799284.15729.27.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2010-11-03 at 23:20 +0800, jovi zhang wrote: > On Wed, Nov 3, 2010 at 10:38 PM, Christoph Lameter wrote: > > On Mon, 1 Nov 2010, Jesper Juhl wrote: > > > >> On Sun, 31 Oct 2010, Balbir Singh wrote: > > > >> > > There are so many placed need vzalloc. > >> > > Thanks, Jesper. > > > > > > Could we avoid this painful exercise with a "semantic patch"? There's an existing cocci kmalloc/memset script. Perhaps this is good enough? cp scripts/coccinelle/api/alloc/kzalloc-simple.cocci scripts/coccinelle/api/alloc/vzalloc-simple.cocci sed -i -e 's/kmalloc/vmalloc/g' -e 's/kzalloc/vzalloc/g' scripts/coccinelle/api/alloc/vzalloc-simple.cocci 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 DD5D98D0003 for ; Wed, 3 Nov 2010 11:48:07 -0400 (EDT) Subject: Re: [PATCH] cgroup: Avoid a memset by using vzalloc From: Joe Perches In-Reply-To: References: <20101031173336.GA28141@balbir.in.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Nov 2010 08:48:04 -0700 Message-ID: <1288799284.15729.27.camel@Joe-Laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: jovi zhang Cc: Christoph Lameter , Jesper Juhl , Balbir Singh , Minchan Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Menage , Li Zefan , containers@lists.linux-foundation.org List-ID: On Wed, 2010-11-03 at 23:20 +0800, jovi zhang wrote: > On Wed, Nov 3, 2010 at 10:38 PM, Christoph Lameter wrote: > > On Mon, 1 Nov 2010, Jesper Juhl wrote: > > > >> On Sun, 31 Oct 2010, Balbir Singh wrote: > > > >> > > There are so many placed need vzalloc. > >> > > Thanks, Jesper. > > > > > > Could we avoid this painful exercise with a "semantic patch"? There's an existing cocci kmalloc/memset script. Perhaps this is good enough? cp scripts/coccinelle/api/alloc/kzalloc-simple.cocci scripts/coccinelle/api/alloc/vzalloc-simple.cocci sed -i -e 's/kmalloc/vmalloc/g' -e 's/kzalloc/vzalloc/g' scripts/coccinelle/api/alloc/vzalloc-simple.cocci -- 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