From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 3DF596B0003 for ; Thu, 1 Feb 2018 04:06:21 -0500 (EST) Received: by mail-wm0-f71.google.com with SMTP id 137so965456wml.0 for ; Thu, 01 Feb 2018 01:06:21 -0800 (PST) Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id m79si1252451wmc.37.2018.02.01.01.06.19 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Feb 2018 01:06:19 -0800 (PST) Date: Thu, 1 Feb 2018 10:05:53 +0100 From: Peter Zijlstra Subject: Re: [PATCH] x86/mm: Rename flush_tlb_single() and flush_tlb_one() Message-ID: <20180201090553.GV2269@hirez.programming.kicks-ass.net> References: <3303b02e3c3d049dc5235d5651e0ae6d29a34354.1517414378.git.luto@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3303b02e3c3d049dc5235d5651e0ae6d29a34354.1517414378.git.luto@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-mm@kvack.org, Borislav Petkov , Dave Hansen , Borislav Petkov , Kees Cook , Hugh Dickins , Brian Gerst , Josh Poimboeuf , Rik van Riel , Boris Ostrovsky , Juergen Gross , Eduardo Valentin , Will Deacon On Wed, Jan 31, 2018 at 08:03:10AM -0800, Andy Lutomirski wrote: > flush_tlb_single() and flush_tlb_one() sound almost identical, but > they really mean "flush one user translation" and "flush one kernel > translation". Rename them to flush_tlb_one_user() and > flush_tlb_one_kernel() to make the semantics more obvious. > > Cc: Peter Zijlstra > Cc: Dave Hansen > Cc: Borislav Petkov > Cc: Kees Cook > Cc: Hugh Dickins > Cc: Brian Gerst > Cc: Josh Poimboeuf > Cc: Rik van Riel > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Eduardo Valentin > Cc: Will Deacon > Cc: Linux-MM > Signed-off-by: Andy Lutomirski > --- > > I was looking at some PTI-related code, and the flush-one-address code > is unnecessarily hard to understand because the names of the helpers are > uninformative. This came up during PTI review, but no one got around to > doing it. Right, got as far as making it consistent and putting a comment on :-) Acked-by: Peter Zijlstra (Intel) -- 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/ . Don't email: email@kvack.org