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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02F2CC4338F for ; Fri, 20 Aug 2021 04:12:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DAE7B610E6 for ; Fri, 20 Aug 2021 04:12:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232520AbhHTEMi (ORCPT ); Fri, 20 Aug 2021 00:12:38 -0400 Received: from verein.lst.de ([213.95.11.211]:39567 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhHTEMi (ORCPT ); Fri, 20 Aug 2021 00:12:38 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9275E6736F; Fri, 20 Aug 2021 06:11:58 +0200 (CEST) Date: Fri, 20 Aug 2021 06:11:58 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , "Darrick J. Wong" , Matthew Wilcox , Andreas Gruenbacher , Shiyang Ruan , linux-xfs , linux-fsdevel , linux-btrfs , Linux NVDIMM , cluster-devel@redhat.com Subject: Re: [PATCH 11/30] iomap: add the new iomap_iter model Message-ID: <20210820041158.GA26417@lst.de> References: <20210809061244.1196573-1-hch@lst.de> <20210809061244.1196573-12-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Thu, Aug 19, 2021 at 02:25:52PM -0700, Dan Williams wrote: > Given most of the iomap_iter users don't care about srcmap, i.e. are > not COW cases, they are leaving srcmap zero initialized. Should the > IOMAP types be incremented by one so that there is no IOMAP_HOLE > confusion? In other words, fold something like this? A hole really means nothing to read from the source. The existing code also relies on that.