Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4136808rwb; Sat, 21 Jan 2023 06:29:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1uBdMegOp51Dnbn5KsExdzqPMThE3ydDSQZn+bE0mDSuz8BPuteMDKsf6caj48wNGcFsl X-Received: by 2002:a17:906:aacf:b0:860:5723:a5e5 with SMTP id kt15-20020a170906aacf00b008605723a5e5mr17569480ejb.69.1674311341317; Sat, 21 Jan 2023 06:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674311341; cv=none; d=google.com; s=arc-20160816; b=Hwhj+mjEXmjHRRZjaEW3wI6JUGLu6dx8+cRsqw7zD3BWAlmwC8WZLKdCRMKZQ4Gbp5 N+sAegjbRFEXLeL185NvCpmidXcHHtUQJY4A0R0uThoKHMVEfdsw1osh7VWAfPot/Y+N tpoGnmJS26/1eFiz6ZW1ic5rfWLHHzueu5ySN7EEMoQRpkD7BoD/ORX6jDuKPSY1YlH6 xGSy+n/8LXKti1PvsvxAOsoRvvvoerm4zZ+xSTfqF/Fnt0rU8XUNQI6oaEfW4A5QDqfn dUOGSOVqk8kPrcZoG11Fz/6auOIsU9C2Zhu/I5NY9mMsWlFyb8i0lGGubKsVXYKQHfEv C7Jw== 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=pj/DkEfwFIRHofLn9X6ceYNaPqlltRYtSVaPq4r62E4=; b=lERhttjrY4B4JQFoI1xZPwRj9FZul0Pk/f04S7qwEYKY7cL65MNj9r3fR5Eoy9ijcp 86Lg+DM9tqpKm5ZXBo/DbxcEBBa8wtsWYkr1JW9+oNRIoXtM4ApO/QaliXj+n+0RMp3p tgu2qj0UTZZ4Qw/rQAFrqUh2HCkvX5Bdppd6ELnwN4gTQXFAm6aTMP4nQWzdY+CclZSm 9FolfIlNF5gEAKX1IXqcmLXJToaTI2X46wQjX2dUsMpwc/2H9KfxzwjcbympnINQ5Kyl EV8HxRtmmL7vNcCr7wWT2DCor4Va228zlfTuI9F6bHPqOAHibiptpG30njt7gz9U+4F7 07sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Gss5I1H4; 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 hu8-20020a170907a08800b008778924dd6esi7076235ejc.958.2023.01.21.06.28.47; Sat, 21 Jan 2023 06:29:01 -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=bombadil.20210309 header.b=Gss5I1H4; 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 S229794AbjAUNd2 (ORCPT + 50 others); Sat, 21 Jan 2023 08:33:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjAUNd0 (ORCPT ); Sat, 21 Jan 2023 08:33:26 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3320B49015; Sat, 21 Jan 2023 05:33:26 -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=pj/DkEfwFIRHofLn9X6ceYNaPqlltRYtSVaPq4r62E4=; b=Gss5I1H4QuD52ATdNFbRLH7ko7 df0aAA4w+7gzuFEHy7vue8kT7qXA40IZYbsQ5nKMG6hMqMqn4ehfu7KLeDJuC5mSDbqaydZ/7y354 tmRtEzVkWibDXrXBH7DgCaInzHLy6C7tqdbD6xhng/4er1qngOmfzSYKWK590TNgk2avxpQ18/lMv 0Ky+pKRypEGf6QBk/Ev0iXsreYF8oFGYB/OxV32g9tQ+AaI45NisgZeVlZxBrPgSagR4ICGhnl5eW /T6GhWe0HOrsHLB7yuEabUaxP7DE23n0oDvaC8F4R8rCOGjWxd+pQS1pCl84hIkEOf41jlYSKNEws eOCqD9NA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJDzi-00DuND-Gf; Sat, 21 Jan 2023 13:33:18 +0000 Date: Sat, 21 Jan 2023 05:33:18 -0800 From: Christoph Hellwig To: David Howells Cc: Christoph Hellwig , Al Viro , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , John Hubbard , linux-mm@kvack.org Subject: Re: [PATCH v7 2/8] iov_iter: Add a function to extract a page list from an iterator Message-ID: References: <20230120175556.3556978-1-dhowells@redhat.com> <20230120175556.3556978-3-dhowells@redhat.com> <3598255.1674307847@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3598255.1674307847@warthog.procyon.org.uk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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,URIBL_BLOCKED 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 Sat, Jan 21, 2023 at 01:30:47PM +0000, David Howells wrote: > So just drop the check? Or do I actually need to do something to the pages to > make it work? If I understand the code correctly, it's not actually operable > right now on any page that doesn't have an appropriately marked PTE. Yes, just drop the check. The flag just signals that the caller can deal with p2p pages. If it gets any or not is a totally different story.