Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2081940ybh; Sun, 4 Aug 2019 17:24:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxaYZ/12GKXKZ+uww03wqoVmDm8SRazK7khjRQZb2cZ6UlLbl4gJZDLtlq+1AYhUeJPT7E X-Received: by 2002:a63:48c:: with SMTP id 134mr11225791pge.386.1564964692615; Sun, 04 Aug 2019 17:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564964692; cv=none; d=google.com; s=arc-20160816; b=D9mev2lpU/6k5FCNY7ZxEscCfVKGjVLuphBi836D8tTmuV3YXyQXkIR42TH0d1kZbm gYWPJu3upZDwOSKaCaNtZXyGveloiW8flZWJ3x/HyX0mIwJBvYxf2PRtF2Uq7EF2aTdK I6pMpr8742JYx7T7gW6XJj/FQM6dBReMHd8uBkiup4R3kA1lkyHY9gYX/VfLS9WWVhsp 2LASYOnpF5gwTTkldSkUp2BVIfHIzf/jxKDNfuGHj5pVNIrh4LAZ182/TvEwMy90dmuX SRyJPcb9EHkzYwrpOZ+SUVAjP14LhA0MYFPaJHfWBfX2xz2jyLyqQPKyYZjZ/uMy433m 82pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J3eCHOr4mua6pqzcBQeknm8Ud/LGeTANaqyqWtQI0kc=; b=SXhXPz9v46pacGanrmV+940L8vNEorXxXEz8xPqgTfvZ1Hc/dh8/2urNBJRqqx3MRg tDEzRzrmH8wHTK5pDZy+mtOtmMMKAYfL0pBr7JBSyofkCg882H/2BlIRKhYDcD6OJlhz ptRN4dpR2c3hYqP2ZnJ63ti97wl9fy0ZfEWRPS9VkSFzaEQnxG5MfB+IGYcraiX+xZs5 SNROTqivOJ9fd0rrnDktMOb15/oB0+Mzf+lOGmcigrQxLJbU9sKLvX2o7VYx30zT0SHp 0x1UkzKdaOUATgpfd+4EhWBy+xSh8vWjOToHEnz48bAz4bdJ0rEfi4iPBkXkAhzNABnX KE8A== 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 v1si11723516pjn.79.2019.08.04.17.24.24; Sun, 04 Aug 2019 17:24:52 -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 S1726795AbfHEAXa (ORCPT + 99 others); Sun, 4 Aug 2019 20:23:30 -0400 Received: from mail104.syd.optusnet.com.au ([211.29.132.246]:59042 "EHLO mail104.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbfHEAX3 (ORCPT ); Sun, 4 Aug 2019 20:23:29 -0400 Received: from dread.disaster.area (pa49-181-167-148.pa.nsw.optusnet.com.au [49.181.167.148]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id A7108438EAC; Mon, 5 Aug 2019 10:23:25 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92) (envelope-from ) id 1huQkw-00050c-Nc; Mon, 05 Aug 2019 10:21:42 +1000 Date: Mon, 5 Aug 2019 10:21:42 +1000 From: Dave Chinner To: Shiyang Ruan Cc: Goldwyn Rodrigues , linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, darrick.wong@oracle.com, linux-kernel@vger.kernel.org, gujx@cn.fujitsu.com, qi.fuli@fujitsu.com, caoj.fnst@cn.fujitsu.com Subject: Re: [RFC PATCH 0/7] xfs: add reflink & dedupe support for fsdax. Message-ID: <20190805002142.GV7777@dread.disaster.area> References: <20190731114935.11030-1-ruansy.fnst@cn.fujitsu.com> <20190731203324.7vjwlejmwpghpvqi@fiona> <800ff77a-7cd1-5fa1-fcf7-e41264a3f189@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <800ff77a-7cd1-5fa1-fcf7-e41264a3f189@cn.fujitsu.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.2 cv=P6RKvmIu c=1 sm=1 tr=0 cx=a_idp_d a=gu9DDhuZhshYSb5Zs/lkOA==:117 a=gu9DDhuZhshYSb5Zs/lkOA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=FmdZ9Uzk2mMA:10 a=7-415B0cAAAA:8 a=5uzjyc-vXknmC19CI-UA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 01, 2019 at 09:37:04AM +0800, Shiyang Ruan wrote: > > > On 8/1/19 4:33 AM, Goldwyn Rodrigues wrote: > > On 19:49 31/07, Shiyang Ruan wrote: > > > This patchset aims to take care of this issue to make reflink and dedupe > > > work correctly in XFS. > > > > > > It is based on Goldwyn's patchsets: "v4 Btrfs dax support" and "Btrfs > > > iomap". I picked up some patches related and made a few fix to make it > > > basically works fine. > > > > > > For dax framework: > > > 1. adapt to the latest change in iomap. > > > > > > For XFS: > > > 1. report the source address and set IOMAP_COW type for those write > > > operations that need COW. > > > 2. update extent list at the end. > > > 3. add file contents comparison function based on dax framework. > > > 4. use xfs_break_layouts() to support dax. > > > > Shiyang, > > > > I think you used the older patches which does not contain the iomap changes > > which would call iomap_begin() with two iomaps. I have it in the btrfs-iomap > > Oh, Sorry for my carelessness. This patchset is built on your "Btrfs > iomap". I didn't point it out in cover letter. > > > branch and plan to update it today. It is built on v5.3-rcX, so it should > > contain the changes which moves the iomap code to the different directory. > > I will build the dax patches on top of that. > > However, we are making a big dependency chain here > Don't worry. It's fine for me. I'll follow your updates. Hi Shiyang, I'll wait for you to update your patches on top of the latest btrfs patches before looking at this any futher. it would be good to get a set of iomap infrastructure patches separated from the btrfs patchsets so could have them both built from a common patchset. Cheers, Dave. -- Dave Chinner david@fromorbit.com