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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34041C61D97 for ; Thu, 23 Nov 2023 07:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234675AbjKWH2a (ORCPT ); Thu, 23 Nov 2023 02:28:30 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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.