Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1983533pxb; Mon, 8 Mar 2021 10:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJztCqrupWQv3omMV2jpz7zckI/VHGiyFsLn+/WjMkFYV0L38FOwQtmQTeAf/5AfEUnx0tde X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr23002edb.242.1615229762181; Mon, 08 Mar 2021 10:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615229762; cv=none; d=google.com; s=arc-20160816; b=skPTfV3axzM1es0tibiWzgasKCFpyN9hyjufkSJTIe7bGKd5NuWnhJVHDmv8V1Jy85 wDKr8TDbzFkGqy9vjpRAsxgwS2h4VDr5oBQGovr5RZ9B/nX2wv8rpC32OSj8szQ4Izeq idKkSc8M0aU7V71fXu6Z3C5XdR12R7vutdMTTVQtgDE7mzMTnRgFL0ZNtbJ94zSVx9EY UYrjgT/gfQlV+mZsfZJrcxU6esp4CrY/K4fPm9qvWRigzrUOJ0OwUqFnOjfmyTWta4mq VjaYsldiQkFSvYw1WBD088+nfD/tP5R+yh86s0mhOMDESo1GutZBipKQm6uaXAVx9X3m Oogg== 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 :dkim-signature:dkim-filter; bh=xDgC7LlBmjqCSWF7ziP8dFyfWdwiA7a0Sh7MAb3vsSg=; b=Jvu8TUi9/TczlUw7EissyI487pIp8jHMTHE05Pm1AH0YI2hNrRrtIoZnK2UbFE/WSg 4VnpgNgcHyqGT2pLnvlbMoZ6rPZekoeKWPftOv4BRimEgx0vFtQT9OoHhdnW3yAsuMN4 2bOt+EQIE6vd8Jp4Uv8aNOYu3chBmVVPET+f3iOBMitgUNPoyBfaEVhR6pj29rNRz9DP kOTqqO+rBBtXxEY90yjSGJnnM0FFRR95eyv4QpPcuIIjq6gxampR9wxnPO0h8jMikL7q UHsTMoCaRxYK87OIDRRniVaC5DSaLQ7jXATZBpNhG5c2DOy+0zEdDZvDWzxkXCkv3NL0 ZG5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="ij/YmN4Z"; 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 x10si7666606eds.158.2021.03.08.10.55.39; Mon, 08 Mar 2021 10:56:02 -0800 (PST) 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; dkim=pass header.i=@fieldses.org header.s=default header.b="ij/YmN4Z"; 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 S231266AbhCHSym (ORCPT + 99 others); Mon, 8 Mar 2021 13:54:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbhCHSyL (ORCPT ); Mon, 8 Mar 2021 13:54:11 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C23C06175F; Mon, 8 Mar 2021 10:54:11 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id B366F35BD; Mon, 8 Mar 2021 13:54:10 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org B366F35BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1615229650; bh=xDgC7LlBmjqCSWF7ziP8dFyfWdwiA7a0Sh7MAb3vsSg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ij/YmN4ZebdMPqxxrBDuGYwtre8S0qs40MfCHLhqodetYSoxXMe9aE04WgC/4Q1DR 20zcySXbv0GKk83IdR8F8zJJRdgLSvUXs5DXB8A6ipkmjqtANNIA8X5KWjQ7wad9Xl DoQOtJQEB0D4j4ThsTeLw2m/ax39UkOlyflJq14o= Date: Mon, 8 Mar 2021 13:54:10 -0500 From: "J. Bruce Fields" To: David Howells Cc: Amir Goldstein , linux-cachefs@redhat.com, Jeff Layton , David Wysochanski , "Matthew Wilcox (Oracle)" , Christoph Hellwig , Dave Chinner , Alexander Viro , linux-afs@lists.infradead.org, Linux NFS Mailing List , CIFS , ceph-devel , v9fs-developer@lists.sourceforge.net, linux-fsdevel , linux-kernel , Miklos Szeredi Subject: Re: fscache: Redesigning the on-disk cache Message-ID: <20210308185410.GE7284@fieldses.org> References: <2653261.1614813611@warthog.procyon.org.uk> <517184.1615194835@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <517184.1615194835@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 09:13:55AM +0000, David Howells wrote: > Amir Goldstein wrote: > > With ->fiemap() you can at least make the distinction between a non existing > > and an UNWRITTEN extent. > > I can't use that for XFS, Ext4 or btrfs, I suspect. Christoph and Dave's > assertion is that the cache can't rely on the backing filesystem's metadata > because these can arbitrarily insert or remove blocks of zeros to bridge or > split extents. Could you instead make some sort of explicit contract with the filesystem? Maybe you'd flag it at mkfs time and query for it before allowing a filesystem to be used for fscache. You don't need every filesystem to support fscache, right, just one acceptable one? --b.