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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham 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 1615DC43387 for ; Mon, 14 Jan 2019 16:50:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DAFB12086D for ; Mon, 14 Jan 2019 16:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbfANQuZ (ORCPT ); Mon, 14 Jan 2019 11:50:25 -0500 Received: from verein.lst.de ([213.95.11.211]:47718 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726673AbfANQuZ (ORCPT ); Mon, 14 Jan 2019 11:50:25 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 0590168D93; Mon, 14 Jan 2019 17:50:24 +0100 (CET) Date: Mon, 14 Jan 2019 17:50:23 +0100 From: Christoph Hellwig To: Carlos Maiolino Cc: Andreas =?iso-8859-1?Q?Gr=FCnbacher?= , Christoph Hellwig , Linux FS-devel Mailing List , Andreas Dilger , sandeen@redhat.com, Dave Chinner Subject: Re: [PATCH 00/10 V2] New ->fiemap infrastructure and ->bmap removal Message-ID: <20190114165023.GB7187@lst.de> References: <20181205091728.29903-1-cmaiolino@redhat.com> <20181207093429.t3zzkxmfc4wlt5ny@hades.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181207093429.t3zzkxmfc4wlt5ny@hades.usersys.redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Dec 07, 2018 at 10:34:29AM +0100, Carlos Maiolino wrote: > On Thu, Dec 06, 2018 at 07:56:02PM +0100, Andreas Grünbacher wrote: > > Hi, > > > > Am Mi., 5. Dez. 2018 um 10:18 Uhr schrieb Carlos Maiolino > > : > > > This is the second version of the complete series with the goal to remove ->bmap > > > interface completely, in lieu of FIEMAP. > > > > I'm not thrilled by this approach. How about exposing the iomap > > operations at the vfs layer (for example, in the super block) and > > implementing bmap on top of that instead? > > > > Well, the idea is exactly to get rid of bmap, not reimplement it. We can use the > same operation for both cases (fiemap+fibmap), so I honestly don't see which > advantages would be by reimplementing it. Exactly. iomap really is a possibly implementation. Everytime we exposed implementation details at the ops level that created horrible abuses. The most important still relevant example is write_begin/write_end, which require fs specific locking but are exposed in a way where we can't easily enforce that.