Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp642105ybx; Wed, 30 Oct 2019 21:58:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzajlspj7C8S9r/AihDX/WrPqo2livhAmPRRvaup8tFcjVYLwFfo9KSY3KM/ENOuilCJPuF X-Received: by 2002:a17:906:19d9:: with SMTP id h25mr1956977ejd.60.1572497894493; Wed, 30 Oct 2019 21:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572497894; cv=none; d=google.com; s=arc-20160816; b=wJrefQoVthdcGFGdWVQQcXVydWwSJs3XsvVY2c7ZpKPxRrt0bbghM8mGTy80MZ/wuw 68AnAhGZflRCrSPZuuol2iBjeDr5Q6G4z91qJ3+d1QBhWCxAKB+31cVANysQM8IEB0l5 tI30ywjTtKBO5XBdhxea8K78/33FXkLIPUeGgCi4BFQeMK4w1tK4QLT2ipgJ5N8J7T96 /MaXzZyjTrreNMhp05YzE2nGcXrofQbsw9G6b59IDdgoNTAOMsZ17drNU7bkTXXUWsv7 dyJb5M6VJebp4fvCh8Ue7ycp2qdvKRV/pGA/YCu2XefuU+tVAT536QZ39nw+dkGfvE6y iIlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yDnJaDurGPg8P0bZpkLkYhU3/WYDk3amO6l+fuikLMI=; b=dbXrOkHX5YoUdWKktIwsCeZDC1gNQbmfDUx7Ze/o2VKFZsyyn5Q7MLkuy1E3qeHIM7 1F8bzmBpvoXOmSEANC9Q1fLnLsAhxjBVzcm0EgrmbQ6G/eEVj47+Zhyw/exLp1D/8hly KDe8QdUQGw8wiiEIAXy5iS9iYwzcnt7yxiwNg2NL9rFPYITSNYTh2+6R2fMeHQSwTym7 RmQHwbGgRFjXseOeFqUN8m3Un1CoI0ICH2LfiPfv4iTZnhIkXOqo/df51QPrIMruTmRC eyXTwPI4f4eC2ljPQyyHCNPIpV6cvn5u39PiXi0lAgDR3HuZjENGsLwOjIXwMah8Yjtw /cqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha5si2943846ejb.329.2019.10.30.21.57.50; Wed, 30 Oct 2019 21:58:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726759AbfJaEzA (ORCPT + 99 others); Thu, 31 Oct 2019 00:55:00 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:27908 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725816AbfJaEzA (ORCPT ); Thu, 31 Oct 2019 00:55:00 -0400 X-IronPort-AV: E=Sophos;i="5.68,250,1569254400"; d="scan'208";a="77722261" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 31 Oct 2019 12:54:57 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 7B345486A852; Thu, 31 Oct 2019 12:46:58 +0800 (CST) Received: from [10.167.225.140] (10.167.225.140) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 31 Oct 2019 12:55:08 +0800 Subject: Re: [RFC PATCH v2 0/7] xfs: reflink & dedupe for fsdax (read/write path). To: Goldwyn Rodrigues CC: , , , , , , , , References: <20191030041358.14450-1-ruansy.fnst@cn.fujitsu.com> <20191030114818.emvmgfgqadiqintw@fiona> From: Shiyang Ruan Message-ID: <2737c6f6-5cca-2b92-edff-fb9227ccc6d1@cn.fujitsu.com> Date: Thu, 31 Oct 2019 12:54:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20191030114818.emvmgfgqadiqintw@fiona> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.225.140] X-yoursite-MailScanner-ID: 7B345486A852.A9538 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: ruansy.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/30/19 7:48 PM, Goldwyn Rodrigues wrote: > On 12:13 30/10, Shiyang Ruan wrote: >> This patchset aims to take care of this issue to make reflink and dedupe >> work correctly (actually in read/write path, there still has some problems, >> such as the page->mapping and page->index issue, in mmap path) in XFS under >> fsdax mode. > > Have you managed to solve the problem of multi-mapped pages? I don't > think we can include this until we solve that problem. This is the > problem I faced when I was doing the btrfs dax support. That problem still exists, didn't be solved in this patchset. But I am also looking into it. As you know, it's a bit difficult. Since the iomap for cow is merged in for-next tree, I think it's time to update this in order to get some comments. > > Suppose there is an extent shared with multiple files. You map data for > both files. Which inode should page->mapping->host (precisely > page->mapping) point to? As Dave pointed out, this needs to be fixed at > the mm level, and will not only benefit dax with CoW but other > areas such as overlayfs and possibly containers. Yes, I will try to figure out a solution. > -- Thanks, Shiyang Ruan.