From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D03CC433E0 for ; Fri, 15 Jan 2021 10:25:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7A99224F9 for ; Fri, 15 Jan 2021 10:25:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728854AbhAOKZC (ORCPT ); Fri, 15 Jan 2021 05:25:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:57998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbhAOKZB (ORCPT ); Fri, 15 Jan 2021 05:25:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2F44236FB; Fri, 15 Jan 2021 10:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610706260; bh=HMdqhYxMZg+Yr+I0XiCS9E9xDkv6WxF8oA5PAduSBeI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iT5eQuZzCxshhUvwbqMO1wsiWDIhBgFJNoGwSg9/QdHkONv8IxDuL9BFTc9dmLSgU K+1xVKUHagqWTDQkC/DQPCEwzOc/QzHi8LcOty+5n7GXBDGxdbz8dz9eqlHjJKYmjJ Z5MAIdlkJWCAcD8RFoUPdE3+c1vAqHPTK1VhxMsYsYz5hzNp1UxvcWz3IyVEcp9KwD LNkrnOeE78lZMeTBo1tFStw0iMm7NkNJsRDCx6ccGFScxt0Dmdd6hCIpwoVAlYcj/X XZi2ee0Fb5MPegwDBAHvydnTIn84IOLFiaxp44MGmvpySOgOLboygDCRC1r/C3Td8n l474gZRYSH1Ng== Date: Fri, 15 Jan 2021 10:24:15 +0000 From: Will Deacon To: Linus Torvalds Cc: Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , "Kirill A . Shutemov" , Vinayak Menon , Hugh Dickins , Android Kernel Team Subject: Re: [RFC PATCH 5/8] mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT Message-ID: <20210115102414.GB14167@willie-the-truck> References: <20210114175934.13070-1-will@kernel.org> <20210114175934.13070-6-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 10:17:22AM -0800, Linus Torvalds wrote: > On Thu, Jan 14, 2021 at 10:01 AM Will Deacon wrote: > > > > Rather than modifying the 'address' field of the 'struct vm_fault_info' > > passed to do_set_pte(), leave that to identify the real faulting address > > and pass in the virtual address to be mapped by the new pte as a > > separate argument. > > Ack. > > In fact - apart from the question I had about the 'info' sub-structure > - ack on the whole series. But this one struck me particularly as > "that's simpler and clearer" even if that finish_fault() case is now > not as pretty (but with an unnamed structure it would be slightly > simpler, at least). Thanks. I'll post another spin next week to avoid the named structure, but if you (or anybody else) get a chance to glance over some of the other things I mentioned in the cover letter beforehand that would be really great. Cheers, Will From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AFC9C433E0 for ; Fri, 15 Jan 2021 10:25:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D93DF224F9 for ; Fri, 15 Jan 2021 10:25:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D93DF224F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ilgiKYbKyshPGp5anNfyqJrJJNi3H5CkxdW7uo22x/c=; b=28WBva16e0zgq2RJF+wijNMxX HoCr0KcNaQ9JslaY4vGhH14ErM4MKUY8VLDRcO552O879FXfID7Yu3jjSCXGuG1nB2IHcC7K6Gmm+ I+7a4o79TDz/540QGzA7gbBsu3uSZGm7ql0pigZHS6jTk55hUBLFXGsjiztrGR+4EqjcHAPhdR9a/ EK37/xWSr8XGHuf3vuyv7rN2HZM30JvjAjJwC2VZmPmZGrEQK+RPNHNlkwh0h7IujQwC/du+c4Prd 6j7+9L5Y6vIET0H1KT8X95b8eGIs8Gz6TyaAvD5NqwlzsCFrL8EtatWmcyurCDjCcq8gmeP2j1wKT DOMecMsmg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0MHH-0002Y2-Fv; Fri, 15 Jan 2021 10:24:23 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0MHF-0002Xb-Kc for linux-arm-kernel@lists.infradead.org; Fri, 15 Jan 2021 10:24:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2F44236FB; Fri, 15 Jan 2021 10:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610706260; bh=HMdqhYxMZg+Yr+I0XiCS9E9xDkv6WxF8oA5PAduSBeI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iT5eQuZzCxshhUvwbqMO1wsiWDIhBgFJNoGwSg9/QdHkONv8IxDuL9BFTc9dmLSgU K+1xVKUHagqWTDQkC/DQPCEwzOc/QzHi8LcOty+5n7GXBDGxdbz8dz9eqlHjJKYmjJ Z5MAIdlkJWCAcD8RFoUPdE3+c1vAqHPTK1VhxMsYsYz5hzNp1UxvcWz3IyVEcp9KwD LNkrnOeE78lZMeTBo1tFStw0iMm7NkNJsRDCx6ccGFScxt0Dmdd6hCIpwoVAlYcj/X XZi2ee0Fb5MPegwDBAHvydnTIn84IOLFiaxp44MGmvpySOgOLboygDCRC1r/C3Td8n l474gZRYSH1Ng== Date: Fri, 15 Jan 2021 10:24:15 +0000 From: Will Deacon To: Linus Torvalds Subject: Re: [RFC PATCH 5/8] mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT Message-ID: <20210115102414.GB14167@willie-the-truck> References: <20210114175934.13070-1-will@kernel.org> <20210114175934.13070-6-will@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210115_052421_770103_2F223C58 X-CRM114-Status: GOOD ( 14.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jan Kara , Minchan Kim , Catalin Marinas , Hugh Dickins , Linux Kernel Mailing List , Linux-MM , Vinayak Menon , "Kirill A . Shutemov" , Andrew Morton , Android Kernel Team , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 14, 2021 at 10:17:22AM -0800, Linus Torvalds wrote: > On Thu, Jan 14, 2021 at 10:01 AM Will Deacon wrote: > > > > Rather than modifying the 'address' field of the 'struct vm_fault_info' > > passed to do_set_pte(), leave that to identify the real faulting address > > and pass in the virtual address to be mapped by the new pte as a > > separate argument. > > Ack. > > In fact - apart from the question I had about the 'info' sub-structure > - ack on the whole series. But this one struck me particularly as > "that's simpler and clearer" even if that finish_fault() case is now > not as pretty (but with an unnamed structure it would be slightly > simpler, at least). Thanks. I'll post another spin next week to avoid the named structure, but if you (or anybody else) get a chance to glance over some of the other things I mentioned in the cover letter beforehand that would be really great. Cheers, Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel