Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp161155rdh; Wed, 22 Nov 2023 23:28:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHe72vNCWlBUrFmywVWDY+YYfXIb71LbznQg6NpYRe4VkikcNp1yShZ8dch2q8CJuFycLBK X-Received: by 2002:a05:6a20:7d89:b0:18a:d78e:4ef8 with SMTP id v9-20020a056a207d8900b0018ad78e4ef8mr6248540pzj.1.1700724527898; Wed, 22 Nov 2023 23:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700724527; cv=none; d=google.com; s=arc-20160816; b=T1+T3RQh8tfn1F5OYuDi7+RlQbPe92Qwy1GXCRdTRjAW/XhDz8SkGmMvC6JWtfSwNy lDXUIQ5tmDo1UrsEbcnMwznq390bGnuN64/xIyFM6rZrkDqWYwLy4Jb4vpJvNQxrfVYQ 5K5i4EpEouk3730ch9I7JWvJnCPJDPMt0O9jqHXXnK9J1Fja9+7uKgqL4e/zU6WSXI/X 0y8wAbCTXLiyRnymXxNSi0++zgqUG0FbpFFrusfLAx4/BF0fByKkMKIRG2amKia0PFJu CJetuUTXaYTFGMxoRXxNYac2f1KmUiV+pzhTM4NP8XVUiDTvcurfHvTDZ0xq/zi0B/PC rlXQ== 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=cFIZx1yogxTLlZGRvld5KeeBDD9lT1xUio7I+xCLOyU=; fh=xlRG/ctwqmTme5HrOpixOFf1E0Ug1ecqWpxpTddbOOw=; b=ehqBq3pm5Vm8xm46oAyecoUAHfc6audwMkN8NCerlgNguveJrRcsK3aA+KbwW81xke AuzZTfZjFHr34MAv2NT09XuZMVp1eNmHqXEwVP+/ATmaeiTFmn3SKc7vG2F4HYf1CnT8 GN+GJi9Si/pjH5hd+ygq5NhONCR4VJ8657JGwK59QGiA4p7/Xxy+i6jaQ4l1ZvWAAdiA 4fggppQnxgA5f+CjwosQAeeeP3VKDKWthbvzHrQpo2m4hlrmc2z1GYwjAjSiTZ6aSpmZ +G4JzsdRquD79s9gqGPrBrTATrozdWQfnBAj0XoFQKeQW9y8mWh78j1B4TsWixLu4KRH IdWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=HGn9w41H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k2-20020a170902ce0200b001bdc10170casi667872plg.36.2023.11.22.23.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=HGn9w41H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7565C83BFC47; Wed, 22 Nov 2023 23:28:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344865AbjKWH23 (ORCPT + 99 others); Thu, 23 Nov 2023 02:28:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjKWH20 (ORCPT ); Thu, 23 Nov 2023 02:28:26 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 551F7100 for ; Wed, 22 Nov 2023 23:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cFIZx1yogxTLlZGRvld5KeeBDD9lT1xUio7I+xCLOyU=; b=HGn9w41HrtRpenjpgTwuLAegI6 XIG0w7jdu0ZjPjA50rnWjFlSrNtpbnWBwNAv8EY4b2qvqCe9MC1/0SHjwRBHnvkgWI2HYP7om3Ex+ OmkmxRqaxLOzO1gTDA/LZEfpucHPdqy62+SQFQZTAs6R79wcvhTauyGD+OkxIx96R92nAqse9/tvc 25sSai1Z8cX30vfR+DFAfCqW76EwOQJHAAtfP8QQRvVMrQ14lJJr46uyE4PwhtQNiQupZYAF/0vvK GAnWrqUv1KmKtHQjpPrylCqMaWB4D0AZyc6iyTwxsoX8HKWxT5DoAa0rU/j4CwP9rLx1lczhI36IL nlqpw0kw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r648V-0042Sy-0z; Thu, 23 Nov 2023 07:28:31 +0000 Date: Wed, 22 Nov 2023 23:28:31 -0800 From: Christoph Hellwig To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mike Kravetz , "Kirill A . Shutemov" , Lorenzo Stoakes , Axel Rasmussen , Matthew Wilcox , John Hubbard , Mike Rapoport , Hugh Dickins , David Hildenbrand , Andrea Arcangeli , Rik van Riel , James Houghton , Yang Shi , Jason Gunthorpe , Vlastimil Babka , Andrew Morton Subject: Re: [PATCH RFC 09/12] mm/gup: Handle huge pud for follow_pud_mask() Message-ID: References: <20231116012908.392077-1-peterx@redhat.com> <20231116012908.392077-10-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116012908.392077-10-peterx@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:28:45 -0800 (PST) > We need to export "struct follow_page_context" along the way, so that > huge_memory.c can understand it. Again, thankfully not actually exported, just made global. > @@ -751,24 +746,25 @@ static struct page *follow_pud_mask(struct vm_area_struct *vma, > unsigned int flags, > struct follow_page_context *ctx) > { > - pud_t *pud; > + pud_t *pudp, pud; This adding of pud while useful seems mostly unrelated and clutter the patch up quite a bit. If you have to respin this anyway it might be worth to split it out into a little prep patch.