Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp248534pxf; Wed, 10 Mar 2021 05:38:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSjTcm/XCog+LAH1zbfcQrZ/DmI8wZ2WmyZ8jxG21lNAiMVNx55ecUJ6GI89e3QLv5+CtO X-Received: by 2002:a17:907:76b3:: with SMTP id jw19mr3670396ejc.202.1615383504247; Wed, 10 Mar 2021 05:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383504; cv=none; d=google.com; s=arc-20160816; b=DPNlP8kYmX+1SPNbgHTaeMCGu0tYWAz77XyGPXQX5VQrh9RgfFdgCQdFQflm/kkcvx YYXt4j2KCL0sIkBo4Yo33wsX1GAlrYBXWOn3pJpTU/4s0WuuayaoD4Yt3QmSl7ikijav R+TNKAtN70L0Xl9/ApgAAIC/hjyBIpgnyF5v7HAqAPpPGrJPrHvY0MXNRX0nDilR9l8x osuTYU3Y4W1Man/3qNmEB+L3PbxWioU8ZHTPF98XqF4HB8Pzugdqz9OF1mObnvQhsjkB msPL6N/R/wZfU0mQqayDcXSZzGcrfS+vPicOht6YRy1WaJp2XrhJo7B2wINAUZ+YU14x qKYQ== 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=2aYptJ+Gov2C+oARQmlRLopxW2URRuwXw1AKwLGZv1E=; b=CMYasufS/C8gS4/L+7AHOjM/ulIeagitS8Gke1Nbo4p6ETxpiG2i6htFWcDtP4vrT7 EpVCHaJ7Tk8BidDw8DMbBX5Cgee0erQTSI3Oo6J3cXwVdATgNe+PphRi0ZTZ/iQbXIV1 GEpownxX5Rbf1eOTbmnWN2bfKZR/6Jm3HYLbXddKKhrjhCukW6OWdL7eq65pcryqUVkQ MJtHc001dCHLV/EL8WiGi95ViO9nRWWkbBcTHO4RftlPL81/nWuW8FEoetTYDI102h6x YIIXiPMhzdP4Sc/rxNE+kAo8JJ2NGyqKRgWWaJJSu1LZ3nEpzMyivvwbP7RFpKy/j+m7 dtZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lpoFJtg+; 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 g8si12235478ejr.82.2021.03.10.05.37.58; Wed, 10 Mar 2021 05:38:24 -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=lpoFJtg+; 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 S233478AbhCJNgp (ORCPT + 99 others); Wed, 10 Mar 2021 08:36:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233422AbhCJNgn (ORCPT ); Wed, 10 Mar 2021 08:36:43 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D120C061760; Wed, 10 Mar 2021 05:36:43 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id b10so17876348ybn.3; Wed, 10 Mar 2021 05:36:43 -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=2aYptJ+Gov2C+oARQmlRLopxW2URRuwXw1AKwLGZv1E=; b=lpoFJtg+RfBaF3k+0slfbJr1UD9yvARkoMbBl9MWr5rmcJvOHNz8P65bPDF0DzSKLZ A3QopQpfSEcP9hG6NFxwAymzBtPvh9QtuREgkj9DQjN9L8S9GwxojaVH5XTEDnVF4bQA sMnKkKxuoVoJRr9q12QkvPO1QPeOriCBtg4BBD7uVIji+3DiHwzqJJj7m+b17VLR6Y0I q9ykpG9dwvTB05YeMwCb59uPHELbo+jaZKbPrWda81m5JAPQL+ZZ1OluKZ7IDbefl91g 9ceIqeicNGysV//j//GKZJRSGU2l1tIS6W2s+tKKgHsfQeKrQgjbRQJws2xtrkEhX9Kt ZXxg== 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=2aYptJ+Gov2C+oARQmlRLopxW2URRuwXw1AKwLGZv1E=; b=nZOWR/QPiTGVea/EBlLrzpvp8b9/nkppZ1c5SnlM5WJI0cIfCNvgqeYezlgKCMfNus I2kXb2Ut4St+Ki/UtQo8YZ5Qwq5a2p8Gf/R7ST4xIrWCozXaVN20EOhX/BOpk3BNwC3U JpowUd0RKAqW7Tbssj4PnHJztcfNMIFafH8U+vMufSAxIXMnnMBExWw4iHRI9Ysuqyy0 +5F0SMAUQKXroPVBtif9/jG2/3hxstPpnLmDZVj+LjcOSft5q9Xs8OYqqOyQdsOK2meT 19TAe1poSv6kdo7dBZAVeNiZSxohylGuANybLT2uudSfggChTnhlKu0raRxVPno32HD2 v17A== X-Gm-Message-State: AOAM532OTJYJQsn+4NkpqmRs8ikkg8UCGzdZ1Yz5t8/t2UFaRdku/IWA oz8D7doCwB/kvoiPOOKfoICakkQAZEDzC1EuBzE= X-Received: by 2002:a25:d8f:: with SMTP id 137mr1981743ybn.47.1615383402310; Wed, 10 Mar 2021 05:36:42 -0800 (PST) MIME-Version: 1.0 References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210310130227.GN3479805@casper.infradead.org> In-Reply-To: <20210310130227.GN3479805@casper.infradead.org> From: Neal Gompa Date: Wed, 10 Mar 2021 08:36:06 -0500 Message-ID: Subject: Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax To: Matthew Wilcox Cc: Shiyang Ruan , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel , darrick.wong@oracle.com, dan.j.williams@intel.com, jack@suse.cz, viro@zeniv.linux.org.uk, Btrfs BTRFS , ocfs2-devel@oss.oracle.com, david@fromorbit.com, hch@lst.de, rgoldwyn@suse.de 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 8:02 AM 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 suppor= t. > > 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. So does that mean that DAX is incompatible with those filesystems when layered on DM (e.g. through LVM)? Also, based on what you're saying, that means that DAX'd resources would not be able to use reflinks on XFS, right? That'd put it in similar territory as swap files on Btrfs, I would think. -- =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!