Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2900052ybd; Thu, 27 Jun 2019 22:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUK6r3FzW6MssfdQXX9FcUl9gx8+cO4ugSDcbn54ItJK+GRIv8O1fn//mFURgVEpIIpGCo X-Received: by 2002:a65:6104:: with SMTP id z4mr7475875pgu.319.1561700597529; Thu, 27 Jun 2019 22:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561700597; cv=none; d=google.com; s=arc-20160816; b=Udk8oEMKDx6YI9uHZz2GySop8wgcgSd7mpP2PlcLDQUu+B30mxCpEA+bvICSoyTHYp d9fyRddjS+Dn9gaFkg9tzfg0COKBwCrDBfQbimuVjN9UUCpHMTVeb8I/LSENMzuSeFRf 6tg1yDkTsBbTkltKmC8peEvO/sbFdG20ym5OZr7z//LaUrr1vEsx4LWrcjCsgT3y0HvS f9WBlLLpWlYuuFZTbsaQ964LoOYJqv9Un/T6IjB2Q3schJBHE84lBbqc5GHFelJsntXb +0ctqhlbNO38uqF8SwlO1/YsRzSxj5J+bjuGTf+coEWcKsRUcVJ6HOcXXAemg64wCChR YAYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ocfkGT5OYx0JqA+f+UADmcEQKOVrAigj5290J2VdHIc=; b=tLwM3TMpsuGgs+xiHonvJuRjw+5cOeEiH6/f95im+OoR9nHKiw2LY23rmcDD9airzN 5W25shjp/9OzxGDqXcvKWwHlRvfDotKw2VgwK+/JsKzyUPiWhFMzXlfvO5yzZWXAxcos qXyAEPJx98Ek8kBy8i9n38uY0Qz2VExUObPO9p6uF1TcdT5YZvbjbAKU0l0kPjVpSLH7 E2L6zWAnmVwumzqDyAs6Uql5P/yTspDCzgLe6Jy6mX1Nladu8CX+q/wjLe+jXveSpFRz gVfyH+w4wq1/+fZqRvxjduIg9qiWDyv6RfubHmBoE2m70b8O2L0wmAVzX09ZlDI2cLEY XJ9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si1241528ply.10.2019.06.27.22.43.01; Thu, 27 Jun 2019 22:43:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbfF1Fm4 (ORCPT + 99 others); Fri, 28 Jun 2019 01:42:56 -0400 Received: from verein.lst.de ([213.95.11.210]:45086 "EHLO newverein.lst.de" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726867AbfF1Fmy (ORCPT ); Fri, 28 Jun 2019 01:42:54 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 0A0EF68CEC; Fri, 28 Jun 2019 07:42:52 +0200 (CEST) Date: Fri, 28 Jun 2019 07:42:51 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Damien Le Moal , Andreas Gruenbacher , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: lift the xfs writepage code into iomap v2 Message-ID: <20190628054251.GC26902@lst.de> References: <20190627104836.25446-1-hch@lst.de> <20190628013256.GE5179@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628013256.GE5179@magnolia> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 06:32:56PM -0700, Darrick J. Wong wrote: > I think Dave has voiced some valid concerns about our ability to support > this code over the long term once we start sharing it with other fses. > XFS has a longish history of sailing away from generic code so that we > can remove awkward abstractions which aren't working well for us. If > we're going to continue to go our own way with things like file locking > and mapping I wonder how long we'd keep using the iomap ioends before > moving away again. How well will that iomap code avoid bitrot once XFS > does that? As outlied in my mail to Dave I agree with the high level issue. But I very much thing that the writeback code is and should be generic. For one it is much more tightly integrated with other iomap code than with XFS. And second the kernel doesn't have a sane generic writeback implementation. We have like three different crappy buffer head ones, and anyone wanting to sanely implement writeback currently has to write their own, which is a major PITA. > How does that sound? Who are the other potential users? The immediate current user is Damiens zonefs, which is just a thin abstraction on top of zones in zoned block devices. Then my plan has always been to convert gfs2 over to it, away from buffer heads. With btrfs now joining iomap land I'd be really excited to move it over, but we'll see how feasily that is. But with gfs2 done I think we also are ready to convert anything currently using plain old buffer heads over, so things like sysvfs, minix, jfs, etc. While that isn't a priority and will take a while it will help with my grand overall scheme of killing buffer_heads, at least for the data path.