Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9726653rwr; Thu, 11 May 2023 20:59:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EQOYz4L37IYpw6CvPAUD0V68PO07/fSBaMuSkFSvZMTIIPq3fTnb5fpEvL5Cn2eMUzkYH X-Received: by 2002:a05:6a20:7d8d:b0:103:ee82:dcb0 with SMTP id v13-20020a056a207d8d00b00103ee82dcb0mr5438893pzj.13.1683863946066; Thu, 11 May 2023 20:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683863946; cv=none; d=google.com; s=arc-20160816; b=dCrRk3Ws1gxKE+HZ2iwrgmmTMqpsbIrRAUdxW5ZEqiGUWPGU6jTC/LQevQCuScDlNq ms4/hAcb3S++uSBpTRKleKYEDKyqT1vPkia5bwovCNvyqvxpF7Vl5AOERaa21dl29z7T NftIUHCXk7dN1tNlhgbAKLZ2cAt8pK5XJtAvp2cEXGme4i5rNEOaDmf/toPv+lx+ShaP rJkSn1vomZd858gc8DMEP7JFlXnpjyLs6jXU7wKDXAYPxGEMPZRLUzMSiZPky+5GaDDr FPCAY9hsdes+8kuRtjeNfph+U86kA7NNWRq9JT5nX07ZkCAqBEfydSMG2J5i71aqwnQI NfIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZDvCkpWodX3oBcNkPNQodjjfJ0U0BF7pqW/rMs5nTEI=; b=jPU1Ee8ByIQO+5yHnXRf8HlKqjW8tzFvEjzBLyEiXysACd6otZX6F5OsnoiYtGMZoF Etpt1I7PgsjYLVnKDxjZ0/7zt4LFJccMHgYpl3Rs+oOab5ZNy+61TcS4Wezd9A2cPCe+ q233yOg3V3SYU+h7gy6kfcruS/X9/WG5wyxlpbNeqKiMUhhAxpDbAYEG+bnwhA7NmEUA QbkeXoBNmtI3wzBzh94M7vXjPReVA76olW3Iy20ResxA4bTSZ32Gpncqc4oUwl59jdP1 gHh8cC60j/iirxW8m+PffLIHJ04m0Ap5zeEDIIo6qb26e/PsXB1Y5lfH/pxaeQz4E1dy lBLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U4rplEw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25-20020a637b59000000b005306389636esi4901409pgn.689.2023.05.11.20.58.47; Thu, 11 May 2023 20:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U4rplEw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239878AbjELDib (ORCPT + 99 others); Thu, 11 May 2023 23:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231736AbjELDi3 (ORCPT ); Thu, 11 May 2023 23:38:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0698349F3; Thu, 11 May 2023 20:38:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 95C6B64D31; Fri, 12 May 2023 03:38:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15A0DC433EF; Fri, 12 May 2023 03:38:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683862707; bh=Q7pZ6HkRh3PVDzBCV74mB+fwpBcm2L4Wrr7Gj6KO6ZA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U4rplEw0qMOGxowZ1loQ7IR10mVPR+gkIHrN9H2/CYQigVdydLPavay7G++a7nk75 jDhpGXpsFo8grDqyj+dAD0bRHJYnhZ3zC9JzvBPFC3B2RpUt1tYfAWrn3pIHyEvUc0 m+plA03PmuYT+NcYOD6DwNQyNX3nG8GNV7/Tz7bjzisl+mJN6FAg46r36holy/6HO4 6GEsQAkOKAoidlLLVYOcRtmzSHojiofTEI1BfDjbKkAJM3vujpQ7oWR4AovPMspdwk AfdZmFHnb8dcLpWYTKW3v5BTK8ry629pZRiCq4rIBS69MISbPUUJXyByuj5gGgwTNw bDNRPX9IyrHYA== Date: Thu, 11 May 2023 20:38:24 -0700 From: Mike Rapoport To: Matthew Wilcox Cc: Hugh Dickins , Andrew Morton , Mike Kravetz , "Kirill A. Shutemov" , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Greg Ungerer , Michal Simek , Thomas Bogendoerfer , Helge Deller , John David Anglin , "Aneesh Kumar K.V" , Michael Ellerman , Alexandre Ghiti , Palmer Dabbelt , Heiko Carstens , Christian Borntraeger , Claudio Imbrenda , John Paul Adrian Glaubitz , "David S. Miller" , Chris Zankel , Max Filippov , Peter Zijlstra , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michel Lespinasse Subject: Re: [PATCH 00/23] arch: allow pte_offset_map[_lock]() to fail Message-ID: <20230512033824.GF4135@kernel.org> References: <77a5d8c-406b-7068-4f17-23b7ac53bc83@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, May 11, 2023 at 03:02:55PM +0100, Matthew Wilcox wrote: > On Wed, May 10, 2023 at 09:35:44PM -0700, Hugh Dickins wrote: > > On Wed, 10 May 2023, Matthew Wilcox wrote: > > > > I don't really understand why you're going down a remove-CONFIG_HIGHPTE > > route: I thought you were motivated by the awkardness of kmap on large > > folios; but I don't see how removing HIGHPTE helps with that at all > > (unless you have a "large page tables" effort in mind, but I doubt it). > > Quite right, my primary concern is filesystem metadata; primarily > directories as I don't think anybody has ever supported symlinks or > superblocks larger than 4kB. > > I was thinking that removing CONFIG_HIGHPTE might simplify the page > fault handling path a little, but now I've looked at it some more, and > I'm not sure there's any simplification to be had. It should probably > use kmap_local instead of kmap_atomic(), though. Removing CONFIG_HIGHPTE will drop several lines and will allow to get rid of custom __pte_alloc_one on x86. -- Sincerely yours, Mike.