Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1051282pxb; Thu, 4 Mar 2021 01:49:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhLCQYuNfm2hq5lvL1xdj7RXxsKuFWKRu5GyAYdAYs4LujViUPzY8klD7ZPgm7bsIEnV7g X-Received: by 2002:a05:6402:35c8:: with SMTP id z8mr3355206edc.341.1614851352256; Thu, 04 Mar 2021 01:49:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614851352; cv=none; d=google.com; s=arc-20160816; b=oBVXQg57QUnNW4b4Nieo2fXYcY2a49rZRnb1KyK9yXuzXCVyb4o/duIIrhJ1as0xsJ 6HMhU2Skh5CqGTE8m1jiy+yZAPq0OKoyJXqc22DVy7exfdrbbeIFmeek9twFF0xQWNWD zYceEFr8A1JWXECDdqtyZSCZG4jVmiJyo/Ow0BVlDtISPHO8I/5Ex3U4tW0JQKBo6Q5a BF6/X6YkCfsx7I6nJq5Xy+vAprFJz5+X0xjLyufKO+GS281KILuCYMyUlAsJb2lLxvXR NqyESUcD8NoHIi1b2427zch1o4kP2DhajrL+yR0NNuni6G/kO+rVgvPwVi7oGEqECX3z 1T6g== 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=6ItodS8g2OUrlTmv5Jjh3e1hmYgh+YZSHGHIiL3K/00=; b=p/Svud/1ai/wmMneCr4fnYw7Nrdw16vTHSeo7Eq36E9wVycXdiChU5h0Fcjj++3v+e 108GqZM7FeZBOh0zMJyHSR8TMG1LrDG2HhTvFdcCizuKkcs9gQ7bl34A/qwI/vjdHxnh Z6Vh3LJ0firBVHqQvyz3ieY9lqcsaMZu8XyYHQTt2MhFcN6UgWmgLghtd9Wsc/t3nlc2 BVWodkM9SNhWnPD5jy54idf9sQ1Pe3jq/8r67eIvjjEdxd14MEhE+XBuMJWvb4CgKe6b KznlRrYMeN74izFryfuFW2+6cusdjl3jBZMGp7Qb0ugUj6vH2L1mEV6efJjWKiISONjF oDHQ== 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 j23si16360199eje.581.2021.03.04.01.48.49; Thu, 04 Mar 2021 01:49:12 -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 S1383817AbhCCPfE (ORCPT + 99 others); Wed, 3 Mar 2021 10:35:04 -0500 Received: from verein.lst.de ([213.95.11.211]:36164 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356546AbhCCKrl (ORCPT ); Wed, 3 Mar 2021 05:47:41 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 2C1EF68BFE; Wed, 3 Mar 2021 10:29:37 +0100 (CET) Date: Wed, 3 Mar 2021 10:29:36 +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 04/10] fsdax: Introduce dax_iomap_cow_copy() Message-ID: <20210303092936.GD12784@lst.de> References: <20210226002030.653855-1-ruansy.fnst@fujitsu.com> <20210226002030.653855-5-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210226002030.653855-5-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:24AM +0800, Shiyang Ruan wrote: > + if (!copy_edge) { > + ret = copy_mc_to_kernel(daddr, saddr, length); > + return ret; No need for the ret variable here, this can be: if (!copy_edge) return copy_mc_to_kernel(daddr, saddr, length); Otherwise looks good: Reviewed-by: Christoph Hellwig