From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with ESMTP id 139016B0089 for ; Thu, 18 Nov 2010 12:39:59 -0500 (EST) Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) (authenticated bits=0) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id oAIHdOi3030672 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Thu, 18 Nov 2010 09:39:25 -0800 Received: by iwn4 with SMTP id 4so1134393iwn.14 for ; Thu, 18 Nov 2010 09:39:24 -0800 (PST) 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 Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org 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 List-ID: 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org