Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932466AbWHROdi (ORCPT ); Fri, 18 Aug 2006 10:33:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932463AbWHROdi (ORCPT ); Fri, 18 Aug 2006 10:33:38 -0400 Received: from wohnheim.fh-wedel.de ([213.39.233.138]:6294 "EHLO wohnheim.fh-wedel.de") by vger.kernel.org with ESMTP id S932458AbWHROdh (ORCPT ); Fri, 18 Aug 2006 10:33:37 -0400 Date: Fri, 18 Aug 2006 16:33:28 +0200 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Thomas Klein Cc: Arjan van de Ven , Jan-Bernd Themann , netdev , Christoph Raisch , Jan-Bernd Themann , linux-kernel , linux-ppc , Marcus Eder , Thomas Klein Subject: Re: [2.6.19 PATCH 3/7] ehea: queue management Message-ID: <20060818143328.GC6393@wohnheim.fh-wedel.de> References: <200608181331.19501.ossthema@de.ibm.com> <1155903451.4494.168.camel@laptopd505.fenrus.org> <44E5BFB7.4000400@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <44E5BFB7.4000400@de.ibm.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 831 Lines: 24 On Fri, 18 August 2006 15:25:11 +0200, Thomas Klein wrote: > Arjan van de Ven wrote: > >>+ queue->queue_length = nr_of_pages * pagesize; > >>+ queue->queue_pages = vmalloc(nr_of_pages * sizeof(void *)); > > > > > >wow... is this really so large that it warrants a vmalloc()??? > > Agreed: Replaced with kmalloc() kzalloc() and you can remove the memset() as well. J?rn -- Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming. -- Rob Pike - 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/