Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1199767ybp; Wed, 9 Oct 2019 10:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSPoKP6QWTjA4iQxsoZnUYp+BcJmMohRMu+DGCXMRLYwfN9BTJcSAQh9WcnDl5yqfnl4AX X-Received: by 2002:a17:906:6d89:: with SMTP id h9mr3769417ejt.169.1570641287898; Wed, 09 Oct 2019 10:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570641287; cv=none; d=google.com; s=arc-20160816; b=0uYPcOcmkBMBm94G7GWnooMPwCJi9Y2PBkObLRZP0/dfxt0oFOtrMUGQ9plpcJjvnP E/nR3wIfoVERmEk55wvDUYnpMOMoSoBCwIkN7BsNNV94oB1a1hdhpquPQEMedG5lfsmM xcqLzc1p+vdvk1zGfyvzhus3sZQK7zcn843VylwEcbg/ACYl+SkzaeseGsnIfisOFA5N ts/wwc7/yYbdoi0mLOm0U9GJBcuhAoQwHwPtBDbnuWjKWWpSG68RoUM4QfTNWSJFiju6 jT6bYIe1Su6ISYDJYHaEeN1ejFUT5T69M9s2EVmRR1EFRcJ3EF3Jk8UW4nk/S0+qNPgy a1ig== 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:dkim-signature; bh=D4ahQEa/3t7Vqczl0GG7OBaPn9wEXOpVUYF/xsTU20A=; b=YJBRxWZDttvyCnYym43wzCSIYbHjVjCD3myw2u4+R+/SAp6i6ylBMk9Qt5ZwFr/JOi biZk4pu0AeVLxMpNw9eG97SQwe6rhPZIS0VS6temvxgo1B2Q8PVNYviyR35Fwvhk+oFz rFXtDovPKyhAd9HEbgDlXSmqS93ztShDPvM734rjoZptVMZdKv0lUJx+DHg/GM5gHvmN 3NaengiJhXB5BNESPiImBKXRXDTNZxrPHeFMRAQc3Y7wuc3cVnGbb49wTLnBINkiPZAT mPZFhzFlcFrLq0XyQhcgyEq8dhMBuJDEEPghqawwY9LVL1f9dzgUOkDOG6uq3QuShAJY I0kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=bKd8BnYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b31si2062595ede.12.2019.10.09.10.14.23; Wed, 09 Oct 2019 10:14:47 -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; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=bKd8BnYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731850AbfJIRMW (ORCPT + 99 others); Wed, 9 Oct 2019 13:12:22 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:44272 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731433AbfJIRMW (ORCPT ); Wed, 9 Oct 2019 13:12:22 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x99H4RRg042492; Wed, 9 Oct 2019 17:11:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2019-08-05; bh=D4ahQEa/3t7Vqczl0GG7OBaPn9wEXOpVUYF/xsTU20A=; b=bKd8BnYRSWqER8g5IqufuZVLV802nfphh27t2+XxSYmCHFbpLwbSc6FpmwFlMWdf7hXk 2yEtCe3OGKV7uzoChJZqFZ2XExzaXLKPmQpnRnVmqAHSMRYdJjzzBgz8srQxYHpQ+ahq w2me6MDEGYOVFL32hsWoSBdirHCLRCQTJn92Qb9JpTSZbWi/iqiEV4lE6/aMGmk7GbmU jG/8Usa9cTzrTlq3GCTDZnUYHMaSdTldfLDyiLAWrXxb5AsDMQSvMjRFsyUwIVbjxQvt Nh7YNO01hlG0o3aaS9kxjTjfKjQC5+/7JHZqYxCLKd9jwzk9eab9//tpOerSohV4PVrn +Q== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2vektrnvmw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2019 17:11:58 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x99H42uk196304; Wed, 9 Oct 2019 17:11:57 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 2vh8k15e76-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Oct 2019 17:11:57 +0000 Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x99HBswv025543; Wed, 9 Oct 2019 17:11:55 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Oct 2019 10:11:54 -0700 Date: Wed, 9 Oct 2019 10:11:52 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Shiyang Ruan , linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, rgoldwyn@suse.de, gujx@cn.fujitsu.com, david@fromorbit.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: <20191009171152.GF13108@magnolia> References: <20190731114935.11030-1-ruansy.fnst@cn.fujitsu.com> <20191009063144.GA4300@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191009063144.GA4300@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9405 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=843 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910090148 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9405 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=930 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910090148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 11:31:44PM -0700, Christoph Hellwig wrote: > Btw, I just had a chat with Dan last week on this. And he pointed out > that while this series deals with the read/write path issues of > reflink on DAX it doesn't deal with the mmap side issue that > page->mapping and page->index can point back to exactly one file. > > I think we want a few xfstests that reflink a file and then use the > different links using mmap, as that should blow up pretty reliably. Hmm, you're right, we don't actually have a test that checks the behavior of mwriting all copies of a shared block. Ok, I'll go write one. --D