Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp739909pxf; Wed, 10 Mar 2021 16:57:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRP/5IpwUw7Q1/fvT2d7yZbg9nl7pYxxbKZcV1r2LG/ADid1a9qiOcuKzkGiQSsSNzM54x X-Received: by 2002:a17:906:b817:: with SMTP id dv23mr567139ejb.281.1615424247042; Wed, 10 Mar 2021 16:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615424247; cv=none; d=google.com; s=arc-20160816; b=bmg6Ygu2oi8/JAQCshuPZhN8o7c9Cu6DJjuA0LlHnCNMRH3Dt6d14mMTGIdpkfP6fp EyUpLNwYxrFD1eLtkWdaN+jF3nKdgivodMEKy9E2guZjCp/Ncbfy2iPPTmEKL1BFwwnJ JqOtu3MDGElAl4D+/bbPdbGWRq2SY+Cg4xMzAwDLmjFEVoy3OvsxjYPgucjs/H00Gz0+ CRS8FX9Du+WdaDCvM4XRy5pBnRIEk9eW4P5bI8EoWnx666IwMK1cE1NdXUI3VJNEwfdv DwGccQtv9SjIAklp5ybfyzRUKUnuq0G9KjkMMGDIPXQmp0IHF5G8gvrEPXYFZ5/lqbMt pj3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=q4/XB1NjVzkcassvGF9k8OOkOtHMefsYgpLIOhbHN44=; b=0BGBt3HGdjQJ+fUNaYKTU7pPyMmtVKSpvqNvh8f03HgrrZHPq20SKN4LL1JNqBInE7 l7DPnhAtVGHxy2Tyugl4iuH6UsCCRqVTq/y16dzyA6lHLC8csxVH3juA+cj/5/UbH9S7 rwxwnx/nk4zHMlOdHMSOLammpYS+OUppmj8tWpfL1abduYsFVkOZG2zIkEjrqUIHq1Ri 2Cr5ZqgInz9X4HdKoFwFly6R4mz+RmYgRrxVlMPbv5omdH+NilAsAEbHOkZLatkt7MEc 2j+XuBAspJ5VGqPVf/nmB0T6PmslOUTzXF0znVqxgFrfQ74pYpQKtap3E7UgA4FAH3UP VjHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=VytBblI4; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si666862edh.13.2021.03.10.16.57.04; Wed, 10 Mar 2021 16:57:27 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=VytBblI4; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbhCKAxz (ORCPT + 99 others); Wed, 10 Mar 2021 19:53:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhCKAx2 (ORCPT ); Wed, 10 Mar 2021 19:53:28 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FEBC061760 for ; Wed, 10 Mar 2021 16:53:28 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id h13so251149eds.5 for ; Wed, 10 Mar 2021 16:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q4/XB1NjVzkcassvGF9k8OOkOtHMefsYgpLIOhbHN44=; b=VytBblI4nb9JtqHcpg5PYs38jajnTR0u0JS6jpl3x32VbN+1FmkpQKztC6QGh/owq5 OKZtrVWvRSAAgZSa52MpRCKaSLrn8M/wS7+lpN3thB2qy4x5ASseSLbpttO55PtkZRcg Usu+VKGsxFUTs0UMAmVvtsOBETR54kARgVDHg+jieLrIMe5HoGU7jO+WFaXqB1/Shadj acLiBoL+9rXMHYN4h5kBD34GepJ6XoGwLlBU74peSFTH4olLLWwe877BUouMrPF9vqxz iTkHZTfI/P5BPtXD8Ih2GVWaZnwQK2AMiro/XIrqqU/ujd/Qp2vrSZYPEp61VpSaQc8f 2Qpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q4/XB1NjVzkcassvGF9k8OOkOtHMefsYgpLIOhbHN44=; b=QKlxahb2Wfsi3gmQvr9/nRykUYcUM8czZpQbgcULPYkaxvYepD5GD7H8+fWHL4S8Sg aaXA/0E72v3YkA9V52MYXbsh5ZFV98OOOHWZi6dYn3UZoIVp9aepU1e9nod54hjaIE+F 6UeO/MemupMNL3TIR3YO1QR+O21GEKngX/V0liuDwj92sgomx+MRZhbZuY6ijO3C9GEk IzFMLKgrIFSTGtFufFBkAVnVU5woIIkgv/J0Rz4FKU1BzDT82PClyYDgIPxcfzTlafq1 aDY3RkeyLfJ69Jp95RK7mFfR9T0m1vXURTvcpywwRvOM0HA6oPg+IQ8EgNSjW09TZv8p SY9w== X-Gm-Message-State: AOAM532wqbuPHeM3ZBef3MhR+6kaM4TLpGuFq40nN/iJgNT+WUXqQANU c40YbKbn5XF+7NmGR1E9wofJ7YOF02dRTCcIM46q0A== X-Received: by 2002:aa7:dd05:: with SMTP id i5mr6011841edv.300.1615424006716; Wed, 10 Mar 2021 16:53:26 -0800 (PST) MIME-Version: 1.0 References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210310130227.GN3479805@casper.infradead.org> <20210310142159.kudk7q2ogp4yqn36@fiona> <20210310142643.GQ3479805@casper.infradead.org> In-Reply-To: <20210310142643.GQ3479805@casper.infradead.org> From: Dan Williams Date: Wed, 10 Mar 2021 16:53:15 -0800 Message-ID: Subject: Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax To: Matthew Wilcox Cc: Goldwyn Rodrigues , Neal Gompa , Shiyang Ruan , Linux Kernel Mailing List , linux-xfs , linux-nvdimm , linux-fsdevel , "Darrick J. Wong" , Jan Kara , Al Viro , Btrfs BTRFS , ocfs2-devel@oss.oracle.com, david , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 6:27 AM Matthew Wilcox wrote: > > On Wed, Mar 10, 2021 at 08:21:59AM -0600, Goldwyn Rodrigues wrote: > > On 13:02 10/03, Matthew Wilcox wrote: > > > On Wed, Mar 10, 2021 at 07:30:41AM -0500, Neal Gompa wrote: > > > > Forgive my ignorance, but is there a reason why this isn't wired up to > > > > Btrfs at the same time? It seems weird to me that adding a feature > > > > > > btrfs doesn't support DAX. only ext2, ext4, XFS and FUSE have DAX support. > > > > > > If you think about it, btrfs and DAX are diametrically opposite things. > > > DAX is about giving raw access to the hardware. btrfs is about offering > > > extra value (RAID, checksums, ...), none of which can be done if the > > > filesystem isn't in the read/write path. > > > > > > That's why there's no DAX support in btrfs. If you want DAX, you have > > > to give up all the features you like in btrfs. So you may as well use > > > a different filesystem. > > > > DAX on btrfs has been attempted[1]. Of course, we could not > > But why? A completeness fetish? I don't understand why you decided > to do this work. Isn't DAX useful for pagecache minimization on read even if it is awkward for a copy-on-write fs? Seems it would be a useful case to have COW'd VM images on BTRFS that don't need superfluous page cache allocations.