From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:54004 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935261AbeFMMJJ (ORCPT ); Wed, 13 Jun 2018 08:09:09 -0400 Date: Wed, 13 Jun 2018 05:09:02 -0700 From: Christoph Hellwig To: Dave Chinner Cc: "Theodore Y. Ts'o" , Mark Fasheh , Carlos Maiolino , "Darrick J. Wong" , Eric Sandeen , linux-fsdevel@vger.kernel.org, hch@infradead.org Subject: Re: Ext4 fiemap implementation Message-ID: <20180613120902.GA28014@infradead.org> References: <20180603032853.GA3585@thunk.org> <20180604164309.GB23842@magnolia> <20180608224126.GD28053@wotan.suse.de> <20180611072827.arsyq56m7ptnedig@odin.usersys.redhat.com> <20180612235203.GE28053@wotan.suse.de> <20180613030601.GB3340@thunk.org> <20180613033204.GC5651@dastard> <20180613050453.GA3808@thunk.org> <20180613074150.GA19934@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180613074150.GA19934@dastard> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Jun 13, 2018 at 05:41:50PM +1000, Dave Chinner wrote: > > So my proposal was to change the docs to make it clear that Eric > > Sandeen's reading (that either way is fine) is the correct > > interpretation. > > Ok, we're saying the same things - it wasn't clear to me that your > proposal was to document both behaviours as valid... Even if both are valid we should come to a conclusion which behavior make more sense and switch everyone to it. Right now we have two users of iomap_fiemap (gfs2 and xfs), and three users of generic_block_fiemap (ext2, ext4 and hpfs), out of which two already have iomap infrastructure and could be converted to the iomap variant trivially, and three entirely open coded instances (f2fs, nilfs, ocfs) which look like they could benefit a lot from using common code. It doesn't make sense to have different implementations and different behavior for no good reason.