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 37CE5C63797 for ; Tue, 17 Jan 2023 08:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236203AbjAQIrI (ORCPT ); Tue, 17 Jan 2023 03:47:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236289AbjAQIqo (ORCPT ); Tue, 17 Jan 2023 03:46:44 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96692193C4; Tue, 17 Jan 2023 00:46: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=8H+PHMNzo2HTcMqyv+E+gLhkOMic9ckrnZ4L2irIROs=; b=ewKhMhzGcG3aOo3RcHc5EN27n7 mkq1oCd9tNjMBxLrAfxEARYjoKMBXRSsG3rDqFLCGrJvsxstT0AL+hbnqARczQ5t94xOwglkIc4BI QjkuTNg61vfQTWPjX8/aWGN8QhzwXoQT/ecQemS2zPGLa9m8s68PFFiTv2axFeDchjYzX+q81+y3N z3Ysh053KfiqdPVs50cBKUxO0AR7L2fAfYaFClIL9byP54CYpnSD9KatAM3KJ5R+eXNAcwWc9AOdz ILHTly/1a+9IHP/Ovy4rPdbuIb/n9cSTSLyjQ3Yv3jTdWnz484sYPS8tpAfOaoDYUw3zkCadHw2Pa ZpG2sz+Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHhbv-00DN6U-Hb; Tue, 17 Jan 2023 08:46:27 +0000 Date: Tue, 17 Jan 2023 00:46:27 -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, Peter Zijlstra , David Hildenbrand Subject: Re: [PATCH v6 03/34] iov_iter: Pass I/O direction into iov_iter_get_pages*() Message-ID: References: <167391047703.2311931.8115712773222260073.stgit@warthog.procyon.org.uk> <167391050409.2311931.7103784292954267373.stgit@warthog.procyon.org.uk> <2331410.1673945056@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2331410.1673945056@warthog.procyon.org.uk> 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-fsdevel@vger.kernel.org On Tue, Jan 17, 2023 at 08:44:16AM +0000, David Howells wrote: > Also, I don't want it to be FOLL_WRITE or 0. I want it to be written > explicitly in both cases. If you're going to insist on using FOLL_WRITE, then > there should be a FOLL_READ to go with it, even if it's #defined to 0. Well, that's not how FOLL_* works. And another new flag that is defined to 0 but only used by some I/O callers is really confusing.