Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp876171rwi; Mon, 31 Oct 2022 08:33:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Klr7gIKntKd+dx8m3DHBjvDYnPBxHJ+CR/2PLCh1wAQlSaVCKMqOlaoR73NjbRUOt5Q7y X-Received: by 2002:aa7:da42:0:b0:461:9465:b019 with SMTP id w2-20020aa7da42000000b004619465b019mr14741344eds.144.1667230417267; Mon, 31 Oct 2022 08:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667230417; cv=none; d=google.com; s=arc-20160816; b=r7DC9bWgst0oUKJ7ChrCaD/ImiD+i0ody8ZT/vSWIcbBzLZrZRcmPEjiNIZ19TK1Gc QZHc8jju5tlUQiscmLqwHTkTbIWyTXktuFyI0lkn43AmgaGollovhQ4u85irj/eWpl0l YNyjfU3dmpU35qkzn2S2ppeIgiLA++QfQdvnnuw1NIqlfyF++hNNDAwm3U44OurdpmHf Vg3ai7qv3qAm0S72FSpsG/JHntK5gg+74IPJ9uPQzKt2iT7V8Tg126/GrXl3kKx1z1WI KsvwK9Lqs4r0d8fgksx3V/9pgIDLd0e5JeBFNwAAcVkm1258Ybol+RwJ9F7RteZJDTWB eJKA== 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=RC3NrLoErExSxHY+vh+3bdodn0jnitTTF5VCB2jQink=; b=np3I7qU6o3463Plz8JxyUnGMfmzo3thIv1JpLLEU+43CFR7/avIQBBUMo3Kw3xFfcV oFz4shYUM3dtKSZuRLOCNJ4Jo/L3hxS8gIenA9f19p6wys4PZdfJ/yVawBZYhVGXOsi/ rhqmGRVTa7XNQIYKFjVesAFwCBrtQx1clsAbPWbq4Ojc4IaSA9xfsQA9neFkY4FiZdZp gFUA/LcMmTdFcyR3/38j77P+bBLhYVNPae6ItY7VSyjDAIqlNOinPV99oI6FXEqivDNP RGxMDQV7dK5sA1fgE4bkRzMgoW7tGCDCxocp/n5Qmu+JPWH2y1NR77YQjC6Xxeid//qx 3IEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FClJ7IMr; 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 t26-20020a056402241a00b00461c8f80e34si8634789eda.53.2022.10.31.08.32.59; Mon, 31 Oct 2022 08:33:37 -0700 (PDT) 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=FClJ7IMr; 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 S231712AbiJaOw6 (ORCPT + 98 others); Mon, 31 Oct 2022 10:52:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbiJaOw4 (ORCPT ); Mon, 31 Oct 2022 10:52:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC1C10FEB; Mon, 31 Oct 2022 07:52:55 -0700 (PDT) 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=RC3NrLoErExSxHY+vh+3bdodn0jnitTTF5VCB2jQink=; b=FClJ7IMr0a3VqPvmWo0fQF03WV 40X4qWU9Os74/C/rBsrylU6sJSykUUAdeJR/3IUIrAHbwTlk7pOtTVWxvHOWnddr9c3FDYiIX87XM pjPkQIoSMm4OiUtvfp3zmfNsnFOBnV689PWz9Yc4H9lx4l4Jfa9Tuw1E7ZebPzjFB7TPL7bnouzNA IYsuUgYGNLXgnd9gn5vWqsNmFIxu2GAv4z2ZpBnFY7f3mDAaAJNuNue9KUNAVyBNnsPvUUaMTfe+u 1dL2L/LR1SDwHsrZucG+LVxg7cqCjZQSgzEeVYc2NS7pvyjn/7HUdwrXhjbNhActm6uJT/Rud0Lvh fvf8zO8g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1opW9o-003l2F-E1; Mon, 31 Oct 2022 14:52:56 +0000 Date: Mon, 31 Oct 2022 14:52:56 +0000 From: Matthew Wilcox To: David Howells Cc: viro@zeniv.linux.org.uk, linux-mm@vger.kernel.org, John Hubbard , linux-fsdevel@vger.kernel.org, Christoph Hellwig , smfrench@gmail.com, torvalds@linux-foundation.org, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/2] iov_iter: Provide a function to extract/pin/get pages from an iteraor Message-ID: References: <166722777223.2555743.162508599131141451.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166722777223.2555743.162508599131141451.stgit@warthog.procyon.org.uk> 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 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 Mon, Oct 31, 2022 at 02:49:32PM +0000, David Howells wrote: > I added a macro by which you can query an iterator to find out how the > extraction function will treat the pages (it returns 0, FOLL_GET or FOLL_PIN > as appropriate). Note that it's a macro to avoid #inclusion of linux/mm.h in > linux/uio.h. I'd support moving FOLL_* definitions to mm_types.h along with FAULT_FLAG_* and VM_FAULT_*.