Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp168105pxf; Thu, 11 Mar 2021 00:29:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBQp6Ch1fMok9bGYlsuOHgzgvoUX+HMGXvpiFaIPbcLFQ4IzsPhp/7bgY0bcuz2rZBQ2rX X-Received: by 2002:a05:6402:3493:: with SMTP id v19mr1537160edc.355.1615451354561; Thu, 11 Mar 2021 00:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615451354; cv=none; d=google.com; s=arc-20160816; b=Boes8meoXYCGE5YJVylWlidi9q0u8sk3pyEN1e2NZAI1yQJXCp72KPbKuNPllefSs5 KbFPhAK3hoQ9XWsZquYQCKQHLIMkvKSIgNol6N7lovENf1lZ6jfuN63zH/UpRo4Si01R 8Xcfd7498d1iaxlkhk+Ca4cxb/O7mZxi5JYCCnQUTS3+wIQuFZ2aT0KikyOY4ybI7FkL Lm4j0+N9aXzTj0kw4E+7/gqMwxVQTQsa/HGiblROHOthdgpSqVLHV2nY1EkE/pGNP3yJ NDW64+V9SJ393djxV3D58fog6HkBj4PovBeVequkyJFbGvHOQ9m3RHa55ZenAN0nSSiP C7aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dcZpA35LpDkKjUY2Q5hXt+oRBTl1Po2J4cSvuFIykJg=; b=iennIuvUd024RTshxaIjm1x6WdL3NpgZJ3N9ZtlMGa3RyDW0eyLO8pDXmzHwFsUiWb HXBvsZdLc0t4noy6s6SC5bLg5tP7HPtqQVNTvR+x+yD5mC+Ym+5IxByujzKe0kQeYLYJ mZYEZOxDhQNaPssX5DR6bz6iKaM1Po8dKaq4rDsWikwMr2fpVV2ND2trb1SkAKhjU7HY lXR1bjMeTpmEkqxrbas6DjE0BQi4zpYT+A/oUybz6gMPdERVJ1eQhcutH5JEhGvWtRBg OI8gpxfFxpSCgEmPtvoi9oGxEHUJixDsRVpX7GoOsWyHTRJnLAZWzO/g5eKkXCdUNe+7 P6hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DjYTcGue; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si1231910edy.80.2021.03.11.00.28.52; Thu, 11 Mar 2021 00:29:14 -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=@gmail.com header.s=20161025 header.b=DjYTcGue; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbhCKI0u (ORCPT + 99 others); Thu, 11 Mar 2021 03:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbhCKI0s (ORCPT ); Thu, 11 Mar 2021 03:26:48 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90978C061574; Thu, 11 Mar 2021 00:26:48 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id 133so20868367ybd.5; Thu, 11 Mar 2021 00:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dcZpA35LpDkKjUY2Q5hXt+oRBTl1Po2J4cSvuFIykJg=; b=DjYTcGueHAZYsfVWcXtNSV5/l9b9KrnYrqF65jNsk2ArqmZWXRS3axR3334xSPnksJ KpInpw14LRvoI0+d1KhzvcgE1CFYNdwTtPm+IPG9P2ikH4U8Y2HwEyqtWWTY4ER9D/Im tKABJcbZPj/+aA08uogzlTecDmN9WzdnpKOTEHUNNs2ygRLg0SrzAX7flrL7Zs5WTL95 kw2WWz8GXrociRGMY0y1D/4yVsKqKXYgxPoPv+sNtc5Xm8dDTSFxycSJnXP20MK63TZ6 TgvHhcQztSCshrA1MwAHkYghauzH0gTLgczXbJccIkQGqcS726u4gIP0X3z9vKk7vBSX mPvQ== 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:content-transfer-encoding; bh=dcZpA35LpDkKjUY2Q5hXt+oRBTl1Po2J4cSvuFIykJg=; b=sapBmaj7/tBsdMjIyKMAUKKsbALcZQ39kv5A3ZH9xu0vVN/BN2OfTYuQLCk/ytZ9x6 PXfMDXt/CZoCriOqF1SZadk/L9PE+mqAizWxvSfiGVqg+Agw1v+b2YdhwRmsYZAQVlJ4 8shOBfVM7P4lI7Ly1DPQWSLHCtTQ+OHG29hnB53zDbrwWR0JOIz1gAoJiqOb7AqxRNtU nEKefj0fPQIPqrNGfFVUXqeWXiNPvX6OwDQTg9hymaj80BhwjJ/ppNaU6SIIlh9lDm1m lSwKWC307bn3UaJehXhAJKDTNAWxFkUD0QBgaTm4YxlWGILBnUtNhzZZsxEnXf9LAL6y veHA== X-Gm-Message-State: AOAM530k0HMkV9pKnYcPdfh2jixFOgOUe2F2+rNF3t6iAMBW5UAWknIu rz53D0E2G+gUytpTSkWE1SrKy/C1wRzNX5bbswcNdAPOyi85VA== X-Received: by 2002:a25:cc13:: with SMTP id l19mr9850423ybf.260.1615451207278; Thu, 11 Mar 2021 00:26:47 -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: From: Neal Gompa Date: Thu, 11 Mar 2021 03:26:11 -0500 Message-ID: Subject: Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax To: Dan Williams Cc: Matthew Wilcox , Goldwyn Rodrigues , 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" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 7:53 PM Dan Williams wro= te: > > On Wed, Mar 10, 2021 at 6:27 AM Matthew Wilcox wrot= e: > > > > 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 featur= e > > > > > > > > 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 thi= ngs. > > > > DAX is about giving raw access to the hardware. btrfs is about off= ering > > > > extra value (RAID, checksums, ...), none of which can be done if th= e > > > > filesystem isn't in the read/write path. > > > > > > > > That's why there's no DAX support in btrfs. If you want DAX, you h= ave > > > > 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. I could also see this being useful for databases (and maybe even swap files!) on Btrfs, if I'm understanding this feature correctly. --=20 =E7=9C=9F=E5=AE=9F=E3=81=AF=E3=81=84=E3=81=A4=E3=82=82=E4=B8=80=E3=81=A4=EF= =BC=81/ Always, there's only one truth!