Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4049412rwb; Sat, 21 Jan 2023 05:06:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJZyr57pFWVpCgKmlNShf3PHO40Z9hd1VsRKsRe3QdELZ5marHe1pbt7VImUMftuvONTaF X-Received: by 2002:a62:5bc1:0:b0:58d:ac19:8950 with SMTP id p184-20020a625bc1000000b0058dac198950mr23499761pfb.33.1674306403012; Sat, 21 Jan 2023 05:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674306402; cv=none; d=google.com; s=arc-20160816; b=XcI5RmYm2QQW/ofi/JzQNCQ12D6txIRbOXH7LnF8PWdkU7O9zcvjeg34H+hF3NvlXz a8wGqmSs5ODZ3bLuHV+92bitXVzV4axagUWCGa2njazwWW6xp7PVmUIvvJOlH5nEhRYq yBEBnS7UHWhGtUwPfQrojbEXopSIqbO0cc1N+qFR8JeNGEFMuReQv3SIzcRZb2G5HZu1 j1w1CKV5u1HFGOFKdlbAhePpuJUj6tbe6k4rlvIlkrLONFavHEPk/sca+A7vrKjoq5tW 9UPZFBZ9TNe6MPPx2ySNbxz6VaoXVMiGXic9zNiFfuoE0RwiA8+EyINjMwtlWOdgDWAO 2dqA== 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=bSqkdWNrhXGmD0jHYMr6yrjNBEEMS7JWF4lt5X1qaA8=; b=g7tdT5bs7byblAEr5qmVwUhTYSrhK/V3+i7t6lDV76guwxubBaZWx88u5bSKEiwyw0 FvBbxhV17CdnHkNlUgskdoeMpLAO3TucjRnzrM9DqnC6bznIBr8onGj4kWQ6LYROu5YU Vb5qH/NBN3nx7zbngqrScl/KS+hT4+bo6AD/OGMy9YcLk7zPMGg+Ry7rhIJcCHwUA0dB KNXXWhSkJckQ/mOwNfh4Lx3IH5wMe6QG+LMBvgPs4Zwbsd51GbqVbiKdRYIn0ZGBS3aT iIhSMbpC2kgXl6DS++7RX/nWQyAf5FrTauptITWhKChfi9FMMBOd25QuVOjIGTi85DDD MhKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SlEUdr73; 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 k5-20020a056a00134500b0058aa91de9e1si34265363pfu.25.2023.01.21.05.06.37; Sat, 21 Jan 2023 05:06:42 -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=SlEUdr73; 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 S229700AbjAUNCF (ORCPT + 50 others); Sat, 21 Jan 2023 08:02:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjAUNCE (ORCPT ); Sat, 21 Jan 2023 08:02:04 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF5045BC0; Sat, 21 Jan 2023 05:02:00 -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=bSqkdWNrhXGmD0jHYMr6yrjNBEEMS7JWF4lt5X1qaA8=; b=SlEUdr73tw6Z/9uZG+bDiUCma4 7fNSPS+6DMCcJao04RMkCPNvKkDJWf/xOG2NWATITIrW8dP+giZS74ObBiGFGajoalmxQrizqOiAO cT3nZTvda6LDgiZqRQcC4o+0uoGw/7Hlwh2PC/1SVFdw3HiWw4NQA8SxHzagVmsLaaou+JM3wq/a6 74Zrn8NIXmdvuendNC4UM1JgwLHYE3kA/tjmJwd9ITR4YnUo23LX0sw3Ph5iZb4Hqzu0pCR3AbaN4 BPVZUFNpuefXz0dsBOakncOly8NimXw0zLgzj1RGBGCZ0WuGj7huI9qF9F9bEF3UI8FbhoRqQZo9v Nid2Gdkw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pJDVG-00DsCV-Np; Sat, 21 Jan 2023 13:01:50 +0000 Date: Sat, 21 Jan 2023 05:01:50 -0800 From: Christoph Hellwig To: David Howells Cc: Al Viro , Christoph Hellwig , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120175556.3556978-3-dhowells@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=-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 > +#define iov_iter_extract_mode(iter, extract_flags) \ > + (user_backed_iter(iter) ? \ > + (iter->data_source == ITER_SOURCE) ? \ > + FOLL_GET : FOLL_PIN : 0) The extract_flags argument is unused here.