Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp891661imm; Wed, 4 Jul 2018 07:43:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeFBZWE/g1D4heWbthH0jSAdIXlrEhuM1VNfEKhOIEzw9DUbRKwgC0zexDkefptyD744Sc/ X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr1736110pfq.30.1530715429396; Wed, 04 Jul 2018 07:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530715429; cv=none; d=google.com; s=arc-20160816; b=qQ3CKrMVGJElX2E52Eicr/C2M+QAcZpi29lLPUFLu58Ay8VsV7sevVMucZgc/08Kk2 KVwvzfn973DVndZ1zuF0GmP8qgFsIwCWw0mDbkk9DTQjrH1lfvwaY0aY3jqPg5kYHDre ytbxL437rGbflniiR5eH+a1051wLXHTPY7sUZV/8VlVlMS8DPakwvKUblIUft4fdk0UN XLEZpiXLEBRMjXMVs5xqXig1tLmmOLvFhpQrdGqfxay1FRwXC+ozsTPohoTMP2OtPJAd a6tD2hm4UQVTCUZOw5u60oqiyI7FIz78fpyeESscBFfskf9U3MKOLFtH+XdmdRhA1xs4 6Rxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=q8ouDihyCU9MNCD5pE+nKQzrxYMCthzPdo4QzPUmiEM=; b=ttq4NniVZaBzm0ynKEqTJu0WGzaxhKpfntmpT//tgSaQvl65ctA9jNU0VxCgUd1ytl plNSzzXaHPVn5tsCNDSUEgRqa/+cQwSYF9IoWiLIqJk/O4LENT2+liYED/PNB9f/jW7d SXEHDdkCw3iXQ3/yPb80uaWWFSIFVqjxj4HTu35dax0PsdXTJzrp+NajLosf/w94GTIW UUxx4NeZqCmZZcu/akp8fXd4bk/hwR+kpJMXztYxbPlm4wPLS1iVRDJOWJfQD21elKQZ M4+10hkRTU7P3ziK1eVkCXMW9aGgP8PFW8PJuV6Lmyr/1FyCTb+PerUpRg5rONDrWU5w eQww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gD5axOLp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21-v6si1592204pgl.62.2018.07.04.07.43.34; Wed, 04 Jul 2018 07:43:49 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=gD5axOLp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753345AbeGDOll (ORCPT + 99 others); Wed, 4 Jul 2018 10:41:41 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:42500 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbeGDOlh (ORCPT ); Wed, 4 Jul 2018 10:41:37 -0400 Received: by mail-oi0-f67.google.com with SMTP id n84-v6so11135507oib.9 for ; Wed, 04 Jul 2018 07:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q8ouDihyCU9MNCD5pE+nKQzrxYMCthzPdo4QzPUmiEM=; b=gD5axOLp4HKMNaIPFrR9bQVNxtFAcQ9X7YBsgGGOgruOQcbWWH6bCAsZJPdKAuzm+e iq/5zWSQ4YXBfUaU3nox5HAhf5/9EkWoC/59cgXktVHuUMMo4AI4zPPSi24dUIojsopC L6q2HIU1v4w7K2KsCdrG42Pr+giGFs0NL3RKdejaC/wnZfHrYt+y0yvHwaVyS6f5puT7 w6rAFledA3CvzYZavZ3DgIx1HuqqCaaXq4JaKVpvjlBY/x3PKn+N1WMTV+zOlXruOj01 1MyDTPTXzTNihCoxkV2+i2Lp+y8wUT5o0Je7jXuHQnj0OI7v8vSBto0bQGVUxQBJ1SU5 NlvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q8ouDihyCU9MNCD5pE+nKQzrxYMCthzPdo4QzPUmiEM=; b=MwYEh96IiIjNNs/quymOTBjv3AExz3XN6uggeb8amama41Q3NmaMU16z1BMOcKKvXl f1Ez1+QhygHkQzhjO0o2dbE8ngLslRe76smnjpdfRDRr1TyTB3JBTxhwELPz5Zl8yfBQ 2klV4rUPMCLGhkYuea4XzLBPYoIIaN0TiBbxsOy5Ln+TlNghLO47pVDAZr/0WYRWPIWM Vuv15e6FgOkG8Az2PlcrAjwbObdaoMLkZNIyobTvH82/xiD8D/tuJ2jUM8Yd182AAVs0 +xaHj2IxPLDJjvB60HxlcKAq3/R7NOj+JjQqYo//ZGEmvr5WqbVYJLdX+hg9fsOZZIvo 9WvQ== X-Gm-Message-State: APt69E37W/FOq3B6lIgNsyjtjgBDhur7i1KkXUziHiNmrIDqOUFYoCl8 2IXC493pYN0QuvKy4pbq2rez9hFnj6XMgkMwXih07A== X-Received: by 2002:aca:3954:: with SMTP id g81-v6mr2701831oia.215.1530715297337; Wed, 04 Jul 2018 07:41:37 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:3495:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 07:41:36 -0700 (PDT) In-Reply-To: References: <20180704064058.1344-1-yehs2007@zoho.com> <20180704064058.1344-3-yehs2007@zoho.com> <20180704113012.trnfzeefao25clri@quack2.suse.cz> <1646567c191.ed8ea5b817045.8715756414911693238@zoho.com> From: Dan Williams Date: Wed, 4 Jul 2018 07:41:36 -0700 Message-ID: Subject: Re: [PATCH 3/3] fs/dax: Assigning NULL to gfn of dax_direct_access if useless To: Huaisheng Ye Cc: Jan Kara , linux-nvdimm , Ross Zwisler , Matthew Wilcox , Vishal L Verma , Dave Jiang , Martin Schwidefsky , Heiko Carstens , Al Viro , "Martin K. Petersen" , Jens Axboe , Greg KH , Bart Van Assche , Jan Kara , NingTing Cheng , Linux Kernel Mailing List , linux-s390 , linux-fsdevel , Huaisheng Ye , colyli Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 4, 2018 at 7:37 AM, Dan Williams wrote: > On Wed, Jul 4, 2018 at 6:07 AM, Huaisheng Ye wrote: >> ---- On Wed, 04 Jul 2018 19:30:12 +0800 Jan Kara wrote ---- >> > On Wed 04-07-18 14:40:58, Huaisheng Ye wrote: >> > > From: Huaisheng Ye >> > > >> > > Some functions within fs/dax don't need to get gfn from direct_access. >> > > Assigning NULL to gfn of dax_direct_access is more intuitive and simple >> > > than offering a useless local variable. >> > > >> > > Signed-off-by: Huaisheng Ye >> > >> > I like this. You can add: >> > >> > Reviewed-by: Jan Kara >> > >> > for the series. >> > >> > Honza >> > >> I am so happy you like them, thank you very much. > > Yes, I like this too. In fact I have a similar patch in my tree > already that I have been preparing to send out. I am using it to delay > when we need to have the 'struct page' memmap for dax initialized. > Attached is the full patch, but the series is still a work in > progress. Btw, I'll drop my version and apply your series since you got it posted first and it can stand alone as its own cleanup.