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 1155C8D0001 for ; Fri, 26 Nov 2010 17:25:38 -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 oAQMOxlo007809 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Fri, 26 Nov 2010 14:25:00 -0800 Received: by iwn38 with SMTP id 38so1605692iwn.14 for ; Fri, 26 Nov 2010 14:24:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20101125173518.GR6118@random.random> References: <6022613f956ee326d9b6.1288798072@v2.random> <20101118125249.GN8135@csn.ul.ie> <20101125173518.GR6118@random.random> From: Linus Torvalds Date: Sat, 27 Nov 2010 07:24:37 +0900 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: Andrea Arcangeli Cc: Mel Gorman , 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 Fri, Nov 26, 2010 at 2:35 AM, Andrea Arcangeli wrote: > On Thu, Nov 18, 2010 at 09:32:36AM -0800, Linus Torvalds wrote: >> 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? > > That's because ptep_clear_flush and everything else in that file named > with ptep_* and doing expensive tlb flushes was a macro. That may be, and you needn't necessarily clean up old use (although that might be nice as a separate thing), but I wish we didn't make what is already messy bigger and messier. 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