Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6686554ybi; Wed, 31 Jul 2019 19:30:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY1N47zzsjSEDt28Pr7S1THZ/vu1rlduyI6Azl/AEEU6vvR3wmvW4NeNTnBqM/9Weu6Gyy X-Received: by 2002:a63:db47:: with SMTP id x7mr115999713pgi.375.1564626635391; Wed, 31 Jul 2019 19:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564626635; cv=none; d=google.com; s=arc-20160816; b=BDMMp6hgijKM/bKqQgJB+//GPPVY4nD3mShbYXpU2ZEvpfqyB0c8s/Xi1L4U/BbWhl qaZAiW06TFomhp6Cc6lNF1HMcAfcNrftvxUCb5KOymxjc6fKmzQXpFmyiM9Q7c4LjLWW OYgD4yDXOdJwVpmNu7k4sdremPYoJup7laYyO9hwtSTi3GeAo2vtmWdYP4UoJBpEd3K/ uLuwGFKD4dwi7V62fYSnpDt+bWzXlbDUobdIR2zMtkCIoS+2cUmgfIXfXFmiIq0kcpfU OUPQxROMRBHdblhpaB1ARpXQTvDy5LPJaohB3bmFdnl5FYAT893G62kGddPuzLN17TQS IxhA== 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=CdPypMvs8fWiGKLZ1cNVD80vA/97NWyT2hndsfZV9dI=; b=m/j6sQLVUIW44ZJDJBk9JC+R2pHhGfkGACMTLK9C0wcUER8s3BKR3oRmH4a2EoEooy 0FwDFhBiXmGCHZGsvpMXMj6MGHF+G1lhvFJxh06ob6JhL9FszMYWKQbv9CfvPHrLlSW2 /VaJBgGG5SkJ5Aoi+dXRzNW9wVIEs4ipa/dwTRlWojDEZ3fJG/1MgjjroVZQi+CfOqiX dug94N4HSYLx8DwVUOI9A/BFZ2nFXpCKFkeZX8z1rI6kEaxdJP0tkCP5sgIXepwmfiDc cy7d1IRmnEdtlwB665AlSQMYoyGukukLr7cZOYgS8zp3ubEG8QHAzhkUmHLfnuvaqUII 8rjA== 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 k16si32058572pfi.174.2019.07.31.19.30.20; Wed, 31 Jul 2019 19:30:35 -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 S1729346AbfHABhN (ORCPT + 99 others); Wed, 31 Jul 2019 21:37:13 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:43990 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728014AbfHABhN (ORCPT ); Wed, 31 Jul 2019 21:37:13 -0400 X-IronPort-AV: E=Sophos;i="5.64,332,1559491200"; d="scan'208";a="72632467" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 01 Aug 2019 09:37:11 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 330514CDD99E; Thu, 1 Aug 2019 09:37:07 +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, 1 Aug 2019 09:37:15 +0800 Subject: Re: [RFC PATCH 0/7] xfs: add reflink & dedupe support for fsdax. To: Goldwyn Rodrigues CC: , , , , , , , References: <20190731114935.11030-1-ruansy.fnst@cn.fujitsu.com> <20190731203324.7vjwlejmwpghpvqi@fiona> From: Shiyang Ruan Message-ID: <800ff77a-7cd1-5fa1-fcf7-e41264a3f189@cn.fujitsu.com> Date: Thu, 1 Aug 2019 09:37:04 +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: <20190731203324.7vjwlejmwpghpvqi@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: 330514CDD99E.AAB55 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 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. > -- Thanks, Shiyang Ruan.