Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp948684imm; Thu, 13 Sep 2018 10:08:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYIF62L8uVlCQ9b2yTmR2tbY6diwtzdTfp573fr6gG4KpGddgggiizuP/4FwOXX8wCnj66L X-Received: by 2002:a63:5b1b:: with SMTP id p27-v6mr7997683pgb.322.1536858488617; Thu, 13 Sep 2018 10:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536858488; cv=none; d=google.com; s=arc-20160816; b=runEMLDdRjUNYO0bDk5zR6VUYF0n2V3T6Cu0Oz/Br/RmtTzY/Mp9CwPeHxxn2Pfq5j NGPZ6ws5AA/KfndQvXb3yI13uqR1Z8b6DoWkOBfy+7lcxVnPWW0kJCHEDhmy7plEO/as 1qEj8f+/4chhJ9vOhrwHmcBz1liK6wG37gCMP17OIoWe8efEzy60TvYyn9PTAomONQWG ooxZoi6nzyussHj6zco96LOHz2uz5HpLLSbB+3NF9wG0tELgG1Ygm4+L2ynjklzsIeOi lwcy8XUsrdtwi4VfLsbMuGZywXIxKt081ghS33u9vd+nO5U567y70CJOEBegUQeEx3fI tbhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=oLLwby8x+yDdV6IUeF+VhnOMK2hTPME5l2YsggYeUdI=; b=lLaTjDYhRoT5payuVUxIXTYLsCHS1YX+L4yVXZosUHceiOSJp5hOrbtZrFLm1v8QjT YjBJd6ZojQcSXLmXxFXzQ+XN5VfGdx5PpluOof7USgC1xmfmgmzyEhaykAEL5P+qNgth zM89iPYgzaRQvLdh3ej6ieHYm+k0w5PnPJnS1rWIZ5yFVo2NnTgIBNYuUW7SJ7NWU8NQ Zz0TNuzhx3cGEdQEL54NZ8hm3p+RufS/rTch7d/O2RTgZ8iGR2uSffWH1gg25uRd67oc w/7hIs9dIamR0o9r6gHw67/GV7PdhGrluH+4H2OoDKNQgE02onowSOSONOS2+ZjWxgoN U/hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x63-v6si4435038pfb.299.2018.09.13.10.07.53; Thu, 13 Sep 2018 10:08:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbeIMWQS (ORCPT + 99 others); Thu, 13 Sep 2018 18:16:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47416 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbeIMWQR (ORCPT ); Thu, 13 Sep 2018 18:16:17 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CBC1630832CE; Thu, 13 Sep 2018 17:05:54 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E466608E0; Thu, 13 Sep 2018 17:05:52 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180913164351.GC11574@bombadil.infradead.org> References: <20180913164351.GC11574@bombadil.infradead.org> <20180913161054.GB11574@bombadil.infradead.org> <153685389564.14766.11306559824641824935.stgit@warthog.procyon.org.uk> <17352.1536855503@warthog.procyon.org.uk> To: Matthew Wilcox Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/10] iov_iter: Add new iters and use with AFS MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28093.1536858346.1@warthog.procyon.org.uk> Date: Thu, 13 Sep 2018 18:05:46 +0100 Message-ID: <28094.1536858346@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 13 Sep 2018 17:05:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox wrote: > It might serve to replace iov_iter_zero(). I don't think it can work like that. iov_iter_zero() writes zeros into an iterator someone else set up. To use ITER_ZERO, you'd be setting up the iterator and passing it to someone else to comsume. I think these are at opposite ends of the concept. David