Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp887912imm; Thu, 13 Sep 2018 09:13:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZHGF4ot7T8rd9Q28jVimt+NlcMWNOJe7kseRQ2Nt7YafhP4q6o9BHwBC6ujzvjIOVCExWr X-Received: by 2002:a63:8241:: with SMTP id w62-v6mr7439185pgd.230.1536855186959; Thu, 13 Sep 2018 09:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536855186; cv=none; d=google.com; s=arc-20160816; b=vMqRc7IvItCtaOxRJQI033DwWPx1sKXMEVRUcdXf6HgKqXw7xjCZy9v/MTu5hmiBJf 9/y3qZUmOk5zNanwoEusDI8WTFIl3RbFa4zdsnEKbBbtQnZJksYkjWW9ioexuUYIzmgr n66t7jPdbcUv+O0W48TMS1hOfrYoIRjWM8WN/WGQiLvsyT4tCABCAjOAIR0/akr9A5bB b8R0U7XCaPTS2dgGw3PeAdSIzPiGAO7PyCYJ2wMGBbQ96xYP0J35F9SQGItTyAmcJIjL +Fx9jlyZ8uH4B6lqFtUDwd8j9kLpqRu2sNSyDT2MHlkXqBV6421sJtnIw426dD4Zw7eU ABlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y0OnmPmrNSW7gnWaO4y3qUgmkq/l5b5zzWBdQXoZotk=; b=txoMJyLonSD3I9lRm8Up4PvIlCoWiwMYPZYLdgB92bK7vqG0e43DfBihvIaEYrXMh4 y2+jx7SclHdtFFIK7gTgpvjAAu+A34Jisp+p7dSZr3wfXzwIODpEB8ih0S6yqi9przKJ jJvKTCnbbvUmLXf0Oa0tpxYqZxRd5qBJkuuV6oLyyLsVtcl5+JEK6qdEhhWUnGBMBp1Q umtiYzahH5TNJFNQww4PIcnAsi374L6y7qfGI0pk6jyIdj3LUSS0FPDX7JygAfvxiVXf /1OewZbxEN+pVxmWxxTyDymbyqRy6iqzJpMdCtTcYww87OEtXneEQ/2Y3RFT5z6Wx5D/ KZ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qmOGRRKq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h30-v6si4683157pgb.269.2018.09.13.09.12.51; Thu, 13 Sep 2018 09:13:06 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qmOGRRKq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728637AbeIMVVH (ORCPT + 99 others); Thu, 13 Sep 2018 17:21:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39576 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbeIMVVH (ORCPT ); Thu, 13 Sep 2018 17:21:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y0OnmPmrNSW7gnWaO4y3qUgmkq/l5b5zzWBdQXoZotk=; b=qmOGRRKq7j7yhb1fIQmtIOKcR TwRq3n5yjVCYwGIRdL6t2/gd7uS/6FLzfkb4EIm49GKeWj33Adb/4LNpBMO4nM09nNh0gbrJjTu3R 3eG5oXTL2DdDF1jqC9shZsOZt8MSLEqhC+RYJ0OL6jNyWRZnDH3AKdGaWV3L4qLNMzajvUwD6CF0d KcCcVrovOKw3q00Lk+tVaPOkNvVqYSn/nHPpuDkHftlNiTVwagLTzD/8kJjiH82DzI+RdRMUw/R2R ZqcxlCjlM26t2fDq2vV811PP8q5uX9pVR/rX3rVQkCQCP+8KN1TJBW4k4GgA5cbyCdIDfFgLk+BER E+AjBJlQQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0UCk-0004jK-Mw; Thu, 13 Sep 2018 16:10:54 +0000 Date: Thu, 13 Sep 2018 09:10:54 -0700 From: Matthew Wilcox To: David Howells Cc: 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 Message-ID: <20180913161054.GB11574@bombadil.infradead.org> References: <153685389564.14766.11306559824641824935.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153685389564.14766.11306559824641824935.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 04:51:35PM +0100, David Howells wrote: > (5) Add an ITER_DISCARD iterator type. This provides an iterator that > simply discards anything written to it. It cannot be used as a data > source. May I suggest an ITER_ZERO iterator type instead? It acts like /dev/zero; writes are discarded (as you have here) and reads return zeroes. I've wanted such a thing in the past, but got distracted away from that project.