Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208Ab0KAT6r (ORCPT ); Mon, 1 Nov 2010 15:58:47 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:51639 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147Ab0KAT6o (ORCPT ); Mon, 1 Nov 2010 15:58:44 -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=W+I5LGFgbCqAR5anpFy1bAfudRJf2yT6BkiCQB0O91HSDzHdZf2rYQMvT3lYZd5Ub6 Mvl0JHAhp7UzUNLov5rXCIplrAZjTOsxTDqjKTE0zHSgWNhfLxDXrTNYLFwJBixwTaZW +tTAUfcQ/LKcENAUlxgEDAM9vvnbFOGYnpmSc= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 2 Nov 2010 04:58:43 +0900 Message-ID: Subject: Re: [PATCH] cgroup: prefer [kv]zalloc over [kv]malloc+memset in memory controller code. From: Hiroyuki Kamezawa To: Jesper Juhl Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Balbir Singh , Pavel Emelianov , Minchan Kim , 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 Content-Length: 748 Lines: 22 2010/11/2 Jesper Juhl : > Hi (please CC me on replies), > > > Apologies to those who receive this multiple times. I screwed up the To: > field in my original mail :-( > > > In mem_cgroup_alloc() we currently do either kmalloc() or vmalloc() then > followed by memset() to zero the memory. This can be more efficiently > achieved by using kzalloc() and vzalloc(). > > > Signed-off-by: Jesper Juhl Thanks, Acked-by: KAMEZAWA Hiroyuki -- 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/