From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FB5670 for ; Mon, 26 Jul 2021 08:25:41 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 66F7767373; Mon, 26 Jul 2021 10:25:38 +0200 (CEST) Date: Mon, 26 Jul 2021 10:25:38 +0200 From: Christoph Hellwig To: Dave Chinner Cc: Christoph Hellwig , "Darrick J. Wong" , Dan Williams , Matthew Wilcox , Andreas Gruenbacher , Shiyang Ruan , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, nvdimm@lists.linux.dev, cluster-devel@redhat.com Subject: Re: [PATCH 20/27] fsdax: switch dax_iomap_rw to use iomap_iter Message-ID: <20210726082538.GF14853@lst.de> References: <20210719103520.495450-1-hch@lst.de> <20210719103520.495450-21-hch@lst.de> <20210719221005.GL664593@dread.disaster.area> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210719221005.GL664593@dread.disaster.area> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Jul 20, 2021 at 08:10:05AM +1000, Dave Chinner wrote: > At first I wondered "iomi? Strange name, why is this one-off name > used?" and then I realised it's because this function also takes an > struct iov_iter named "iter". > > That's going to cause confusion in the long run - iov_iter and > iomap_iter both being generally named "iter", and then one or the > other randomly changing when both are used in the same function. > > Would it be better to avoid any possible confusion simply by using > "iomi" for all iomap_iter variables throughout the patchset from the > start? That way nobody is going to confuse iov_iter with iomap_iter > iteration variables and code that uses both types will naturally > have different, well known names... Hmm. iomi comes from the original patch from willy and I kinda hate it. But given that we have this clash here (and in the direct I/O code) I kept using it. Does anyone have any strong opinions here?