Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1836456pxb; Mon, 23 Aug 2021 06:00:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX13A86YmHXd9PRxumOdSj951GAcJtxDdH/lqiOpsuSp1IC0Rkk4pcjmnyJjdBUIkV7Scx X-Received: by 2002:a92:d741:: with SMTP id e1mr22743284ilq.18.1629723608089; Mon, 23 Aug 2021 06:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629723608; cv=none; d=google.com; s=arc-20160816; b=eaM3HtHX6hHcvW/8pxYysw3aa6fVqJpfYkJIKTj7h5ZNEIIdZIuWMbLnqMGyB1VFoe 0MZ6FAbfVrqPot2qjOOSt/2zRuzmNNzgAcXRxwOv2cvcUj0gYczh/JnWSSk0bxNfT0m8 pfaCz7N8xjL+HuiDZqbmIWl4UT/eKLGOvn9GUaGPCV0uIWbGV4KDd+otvaV3JuH3mNL1 fxXWvBVPrqygn74jBMWibY9e6+llNqdRl4mIYZpxLDnJQglrf58q1jWeGrI6FabshdIB 6PLqejJ+5NM8jmmTVwRkxst1r94d21mmft0klbQaZ/owlB/YRzTeWXINxve/79DU2oiK dewQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qe0yHbZ1rdJF+PYx1705UVMUyZClUei15NlEEasWxOg=; b=Q3v0Sj6D6n4zhbESDinhFMN8ebmUd6H+djkmhDlP98vMkQdRhym6mMsEYPVMB/Imbh Qzml5Ppe4RKdWlW1jdG17OHc7zjIAPUqAA+UK7u8M2uQlZOtRrcfOhlPafMCasGQdHqB /tX2upWq5Fewn3y98pV6NBssyNCPvtqX8QXj6j4ky6/NSY/mU35WxfC7i4/0TsUeVkS1 9WNO1yzGWzQyFX6kxeYzS6T/JnKgeV+sG8zlC67Z3Fg6S1e2gwz8EyFBgqzQ7b8/6CMY zURghFMF1+jErp2fkUo2D5n0rALIxSAlACeYn8jxFt4oI+vr8FdRnun3XfYQfgy2xZIn M8Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si13493733iot.52.2021.08.23.05.59.56; Mon, 23 Aug 2021 06:00:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236014AbhHWM7K (ORCPT + 99 others); Mon, 23 Aug 2021 08:59:10 -0400 Received: from verein.lst.de ([213.95.11.211]:47818 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235731AbhHWM7I (ORCPT ); Mon, 23 Aug 2021 08:59:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A97B367357; Mon, 23 Aug 2021 14:58:24 +0200 (CEST) Date: Mon, 23 Aug 2021 14:58:24 +0200 From: Christoph Hellwig To: Shiyang Ruan Cc: djwong@kernel.org, hch@lst.de, linux-xfs@vger.kernel.org, dan.j.williams@intel.com, david@fromorbit.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, rgoldwyn@suse.de, viro@zeniv.linux.org.uk, willy@infradead.org Subject: Re: [PATCH v7 5/8] iomap: Introduce iomap_iter2 for two files Message-ID: <20210823125824.GB15536@lst.de> References: <20210816060359.1442450-1-ruansy.fnst@fujitsu.com> <20210816060359.1442450-6-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816060359.1442450-6-ruansy.fnst@fujitsu.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 02:03:56PM +0800, Shiyang Ruan wrote: > Some operations, such as comparing a range of data in two files under > fsdax mode, requires nested iomap_begin()/iomap_end() on two files. > Thus, we introduce iomap_iter2() to accept two iteraters to operate > action on two files. We really should not need both. We should be able to be in two nested loops, just operating on the part that both cover (for which a helper might be useful).