Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3999889pxb; Fri, 11 Feb 2022 12:36:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzYJpxnKASsDNvwWYHc3/4UjcX/fIYHft8wKsTmujfkpaYd7oR3SKDEmMDhwYuFqCCsB9a X-Received: by 2002:a05:6a00:1d8b:: with SMTP id z11mr3386833pfw.2.1644611768926; Fri, 11 Feb 2022 12:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644611768; cv=none; d=google.com; s=arc-20160816; b=GMpghzyOl2RllXnKK+ON+L60eeI1jpz7lu27qKzjnuIIJOBA6vRhPXSGrkUQj75yVF Ijzt7ltS7GWhohtRicxVzxfkNImgpAz3+HLmhEFijSScZUPF/3Qf2lcA0p8g/gi4SUzw L3Kx5+uXp2zxFixfqWKhj66c/caYFGSU8jUgdNZLlY6Uv6j0IxCCx4/Vv1ytbRH7z0qP XUdvtt0+ZTk97NDXwZ8SYzH0nl5FGvPK8rzBq0TC87CtuhhBcFPEcRXd3YZhv0pyR9F2 C6r9xe01jN+CFet9qJ6NmkDbcQGzGxIa+qB3eAug6/2fHnu5Z2g9twkgfIZA2RrA1MR3 glcA== 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=iw00k9jskvLMRelaK3vjuX4Ipw5ug91ZREDXkAHjsJM=; b=MjSWLhkai0sCLthR8JBSxFGMLDB10//S3Umxr+0RAbOAT8+SW7ZQPwHFf+AtyNZvF6 BjaHRhwIU/r43P13myM3p/1bg49QsoQ03Pxe4Q0s/7o22GkK3WY216SOL2Wj0nJu1KET a+PlodAkDSQtSnuiTnnjp3SY20cO8gwcC5gTrNKcVeDHNiHCmmuuR5QcFFTY2GldjNNL QaMbL8pd63L69tGP5654ntq7HnRnIiyueh1tPN0FYzz6zNro1KgJYXy0TiYWOUrVOCS5 sndUBN987l5tp5dwpuhmStqAqpFQxf1h/70nnSr4LeK6dkhVNt+AnIGPfPVFv+t8vhgb QzTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rP3f+QsP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4si5353341plp.381.2022.02.11.12.35.55; Fri, 11 Feb 2022 12:36:08 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=rP3f+QsP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353173AbiBKUVD (ORCPT + 99 others); Fri, 11 Feb 2022 15:21:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239383AbiBKUVB (ORCPT ); Fri, 11 Feb 2022 15:21:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DAC1CFD for ; Fri, 11 Feb 2022 12:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=iw00k9jskvLMRelaK3vjuX4Ipw5ug91ZREDXkAHjsJM=; b=rP3f+QsPkPnztfOWsgAd/0RoSN Ki0gZ/I+JRYzwFbetWo6Vl9zPQjmckZ6ZYSm8MHuI1TCCrmSacqIs0mW35K4L5Ct6lhgzDzleN38O v3E9gm6YGz54q/gsc0PugERLfdxA07uEcYqA9KRx3LWhvUu7aA7yHFxNySsZ6pUJgKnzE+9yIR3vM tpeiUReXOq/RPrllcZkLVG2gE6g4DGi1oiZPAa3pnF9BUlVC2skbe5AobhFflYb75OUMlDJsB7Zzu fm8o7+ZAmxK8jyVuTuz9iZM0IJS8mUHTJ82rUQIZWAWIIuQPB5uPc5O+7zN4p2h9G/RcRHCwvtj4f qKaZi3Kw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIcPU-00AhuL-R4; Fri, 11 Feb 2022 20:20:52 +0000 Date: Fri, 11 Feb 2022 20:20:52 +0000 From: Matthew Wilcox To: Mark Hemment Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Hellwig , John Hubbard , Jason Gunthorpe , William Kucharski Subject: Re: [PATCH 20/75] mm/gup: Convert gup_pte_range() to use a folio Message-ID: References: <20220204195852.1751729-1-willy@infradead.org> <20220204195852.1751729-21-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 On Sun, Feb 06, 2022 at 02:52:46PM +0000, Mark Hemment wrote: > On Fri, 4 Feb 2022 at 20:21, Matthew Wilcox (Oracle) > wrote: > V. Minor/nit: Above the "goto pte_unmap;" is the code block; > if (flags & FOLL_PIN) { > ret = arch_make_page_accessible(page); > if (ret) { > unpin_user_page(page); > goto pte_unmap; > } > } > Other conditions which goto pte_unmap, after successful > try_grab_folio(), call gup_put_folio() (rather than > unpin_user_page()). > No change in functionality, but suggest calling gup_put_folio() here > too for consistency. Thanks! Changed.