Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932765Ab0KRRdi (ORCPT ); Thu, 18 Nov 2010 12:33:38 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:51213 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932726Ab0KRRdh (ORCPT ); Thu, 18 Nov 2010 12:33:37 -0500 MIME-Version: 1.0 In-Reply-To: <20101118125249.GN8135@csn.ul.ie> References: <6022613f956ee326d9b6.1288798072@v2.random> <20101118125249.GN8135@csn.ul.ie> From: Linus Torvalds Date: Thu, 18 Nov 2010 09:32:36 -0800 Message-ID: Subject: Re: [PATCH 17 of 66] add pmd mangling generic functions To: Mel Gorman Cc: Andrea Arcangeli , linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Hugh Dickins , Rik van Riel , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , "Michael S. Tsirkin" , Peter Zijlstra , Johannes Weiner , Daisuke Nishimura , Chris Mason , Borislav Petkov 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: 1106 Lines: 27 On Thu, Nov 18, 2010 at 4:52 AM, Mel Gorman wrote: > On Wed, Nov 03, 2010 at 04:27:52PM +0100, Andrea Arcangeli wrote: >> From: Andrea Arcangeli >> >> Some are needed to build but not actually used on archs not supporting >> transparent hugepages. Others like pmdp_clear_flush are used by x86 too. >> >> Signed-off-by: Andrea Arcangeli >> Acked-by: Rik van Riel > > Acked-by: Mel Gorman I dunno. Those macros are _way_ too big and heavy to be macros or inline functions. Why aren't pmdp_splitting_flush() etc just functions? There is no performance advantage to inlining them - the TLB flush is going to be expensive enough that there's no point in avoiding a function call. And that header file really does end up being _really_ ugly. Linus -- 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/