Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262062AbVBJJOo (ORCPT ); Thu, 10 Feb 2005 04:14:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262066AbVBJJOo (ORCPT ); Thu, 10 Feb 2005 04:14:44 -0500 Received: from courier.cs.helsinki.fi ([128.214.9.1]:19645 "EHLO mail.cs.helsinki.fi") by vger.kernel.org with ESMTP id S262062AbVBJJOm (ORCPT ); Thu, 10 Feb 2005 04:14:42 -0500 References: <16906.52160.870346.806462@tut.ibm.com> <84144f02050209233314373462@mail.gmail.com> <20050210090903.GA45994@muc.de> In-Reply-To: <20050210090903.GA45994@muc.de> From: "Pekka J Enberg" To: Andi Kleen Cc: Pekka Enberg , Tom Zanussi , linux-kernel , Greg KH , Andrew Morton , Roman Zippel , Robert Wisniewski , Tim Bird , Christoph Hellwig , karim@opersys.com Subject: Re: relayfs redux, part 4 Date: Thu, 10 Feb 2005 11:14:40 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8,iso-8859-1" Content-Transfer-Encoding: 7bit Message-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 864 Lines: 21 I wrote: >> Please consider inlining alloc_page_array() and populate_page_array() >> into relay_alloc_rchan_buf() as they're only used once. You'd get rid >> of passing page_count as a pointer this way. If inlining is >> unacceptable, please at least move the n_pages calculation to >> relay_alloc_rchan_buf() to make the API more sane. Andi Kleen writes: > Modern gcc (3.3-hammer with unit-at-a-time or 3.4) will do that anyways on > its own. I know that but I am commenting on readability. The pointer passing is due to silly interface (alloc_page_array() calculating number of pages on its own). Pekka - 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/