Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752857Ab0KDUfJ (ORCPT ); Thu, 4 Nov 2010 16:35:09 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:46370 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305Ab0KDUfH (ORCPT ); Thu, 4 Nov 2010 16:35:07 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=mIuwIwOvREBPEv1Kiu5fOeEiP6hGHeBmRoMtK2eGSGxzTCK/EMGuRI6lZ9Zilflgxc YixkX9D3gkNm+o1EvKSbRkaDLdKtwg5gzQVRoReHDNzoQn9h4L0DRe2QBmt4WZ8K4bxg VHdqYfytdoMqOCx6KUE1IIEiTz9K1SqZtklVU= Message-ID: <4CD318F7.8050503@gmail.com> Date: Fri, 05 Nov 2010 04:35:03 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/20101006 Thunderbird/3.1.5 MIME-Version: 1.0 To: Jesper Juhl CC: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Balbir Singh , Pavel Emelianov , Minchan Kim , Paul Menage , Li Zefan , Johannes Weiner , Wu Fengguang , containers@lists.linux-foundation.org, Andrew Morton Subject: Re: [PATCH v2] cgroup: prefer [kv]zalloc[_node] over [kv]malloc+memset in memory controller code. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 25 > 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(). > There's also one situation where we can use kzalloc_node() - this is > what's new in this version of the patch. > > The original patch was: > > Acked-by: KAMEZAWA Hiroyuki > Reviewed-by: Minchan Kim > Reviewed-by: Wu Fengguang > Acked-by: Balbir Singh > > Here's version 2. I'd appreciate it if someone could merge it, but I don't > know who that someone would be. > Normally it's Andrew Morton. btw, a better title is: [...] memcgroup: prefer ... over ... memset -- 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/