Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1572708pxb; Thu, 4 Mar 2021 15:12:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmaW0ZJOmSmF+pJkOEVSZ1YLMCxYau3ac25jH0Et+pjw9ZX5eLYaLkhTiwlQA3F7WRxRUq X-Received: by 2002:a17:906:fc1c:: with SMTP id ov28mr6698691ejb.342.1614899548382; Thu, 04 Mar 2021 15:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614899548; cv=none; d=google.com; s=arc-20160816; b=p8gvLD1hgN7jiIl5Dgr+xVjxiIbIXMex4sqjjmlcTl9t9INM5oW/LuuCiFsZW6qxNh f2MrrrAA01JRdS9zWghMDxJ0qzxQ8BdJ9Ckb0enRErextTXouuHvgqP747YrrRMi/5vA ey2yljysfsmxJ01ajo53ZSOoDkOflRDmeJbHcZzBeKXIWxlYPDzIkRq5Q10cKAhicSHa tl5tKqxblTV455TylY1VqSw1tBpDNxc1dkHYClGKoetBnlOF+e2iVm86QKmQCzvBpUbA 3Ker/I9qU54iPAplvkd+G8J6r96I2krTLB5rED99MSgKMRCwOFtKzMvUXUVmKX/ur2Ce /8ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=C/O8iHXj4aP0k6nstJAFEQupkF4g1C4t3WUkfK0rQ7Y=; b=pZSjTpfP2p+YUm89qxnB7CDHdicqajy0e+K3aiV+iscCuCbJ3V0OcgwwdBdE/YUg7x Lkpqw3eL4tMxWs5qb1NQqgtoofSrghTYBgWtSOtZ74eCGUf9NWG8H+nlvJSJwxilhWFY Rck5PK3A/RqxnbCtD0YTHQ0c/VOidqy1oTmSjlSX4iAOYjguQXFuSVycPJUHpkJflHR2 iHUI/RPFw6eurrcKZJIUcsQLnwRAYUSgziJqerqPkMCKYXlf+KCx//VhrUvgwrw6CNCA NUP+z3VSeGgiEpxMVj8zdGh2d7gGcmug/sY1tKCw0EbBF0+k6gzK0zjlsP5yZg3zPOjX gP3g== 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 t14si338030ejr.191.2021.03.04.15.11.20; Thu, 04 Mar 2021 15:12:28 -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 S1384196AbhCCPgr (ORCPT + 99 others); Wed, 3 Mar 2021 10:36:47 -0500 Received: from verein.lst.de ([213.95.11.211]:36163 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356549AbhCCKrm (ORCPT ); Wed, 3 Mar 2021 05:47:42 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 5291568C7B; Wed, 3 Mar 2021 10:31:20 +0100 (CET) Date: Wed, 3 Mar 2021 10:31:20 +0100 From: Christoph Hellwig To: Shiyang Ruan Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com, dan.j.williams@intel.com, willy@infradead.org, jack@suse.cz, viro@zeniv.linux.org.uk, linux-btrfs@vger.kernel.org, ocfs2-devel@oss.oracle.com, david@fromorbit.com, hch@lst.de, rgoldwyn@suse.de Subject: Re: [PATCH v2 06/10] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero Message-ID: <20210303093120.GF12784@lst.de> References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210226002030.653855-7-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210226002030.653855-7-ruansy.fnst@fujitsu.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 08:20:26AM +0800, Shiyang Ruan wrote: > Punch hole on a reflinked file needs dax_copy_edge() too. Otherwise, > data in not aligned area will be not correct. So, add the srcmap to > dax_iomap_zero() and replace memset() as dax_copy_edge(). > > Signed-off-by: Shiyang Ruan Looks good, Reviewed-by: Christoph Hellwig