Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp282216pxf; Wed, 10 Mar 2021 06:23:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJywTNQYwz46FzrRESVIdExL9hYW3+Qco5gFjOQltYV0B1zNJy/f5gaDCQa37AANj/8MEBP5 X-Received: by 2002:a17:906:30da:: with SMTP id b26mr3902470ejb.376.1615386226986; Wed, 10 Mar 2021 06:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615386226; cv=none; d=google.com; s=arc-20160816; b=hFydkv/elNb0NSJRANIPapzOJsDmoCuGqmjWD/aAuo6+S4JnsLo/ybQvHjYg7NTzkF liPo4SmlQv6fqZIjwfcWhG7GqPGbGsKrWwGs9kafC7gQ98oF72rV3T/RFKK5aGStDzrx yMYdUePgn0S8wUiOTeNboIBGQ87orqzM9ClgfwiamVFrvO+zSExlqm5XmZ0QId08DJKs OjDGbtD1N4Pn8QLjGVVl7gnvtgC/gfB31bWhLrqzanSFMt4gd/D5di30Na02R3seOF9J F17FbkxQOwrg2TMLNRLxSvWo/9dFeuGQstpVTUEiDlP0CLFVZkqXb+HGhMSpcSlbO50L hMRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eE0f346ncwYKDD6le2IuHl3+yLBpzsFKhUhDgzYlRHw=; b=VwwoHyFwTTE02WlPuityqwzPqeaMgrf1TzEvZ2mqvCOEQWj51OjJ/y3uAbsA+LQB/I KjO/v482J+b+2lBCokZXtcpYIjytSVN0A1wjnW6/0WkAfGqQuUA9M+XNQTP0lQe64d78 M3b7+GkqpEvZdQuOJL1b3VMgzzxwJejftSwhamxTXKnU3935djbUysOdBDipJ5oSqY9P QW4kTD3YZOSp4cHou3/F9Jw9aCidu0/LP0cbSiIGRG6MXnrcvlOAUIldhn4YBUGHo7HI fwv7sCKUZc+ZAeowpNUY7e55qQUIjVmrZu9+h5bIvz8GLe4QMTnCzEAJblfXG6T9SLco Hr5A== ARC-Authentication-Results: i=1; mx.google.com; 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 ml22si10779475ejb.629.2021.03.10.06.23.14; Wed, 10 Mar 2021 06:23:46 -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; 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 S233090AbhCJOWA (ORCPT + 99 others); Wed, 10 Mar 2021 09:22:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:52472 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232776AbhCJOVo (ORCPT ); Wed, 10 Mar 2021 09:21:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7ACEEAEB6; Wed, 10 Mar 2021 14:21:42 +0000 (UTC) Date: Wed, 10 Mar 2021 08:21:59 -0600 From: Goldwyn Rodrigues To: Matthew Wilcox Cc: Neal Gompa , 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 Subject: Re: [PATCH v2 00/10] fsdax,xfs: Add reflink&dedupe support for fsdax Message-ID: <20210310142159.kudk7q2ogp4yqn36@fiona> References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210310130227.GN3479805@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210310130227.GN3479805@casper.infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 have checksums or multi-device with it. However, got stuck on associating a shared extent on the same page mapping: basically the TODO above dax_associate_entry(). Shiyang has proposed a way to disassociate existing mapping, but I don't think that is the best solution. DAX for CoW will not work until we have a way of mapping a page to multiple inodes (page->mapping), which will convert a 1-N inode-page mapping to M-N inode-page mapping. [1] https://lore.kernel.org/linux-btrfs/20190429172649.8288-1-rgoldwyn@suse.de/ -- Goldwyn