Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp747968pxj; Fri, 11 Jun 2021 10:24:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx28VM8lB+d6zJK40NgK7mwzRa99cESQ4P16dDAZwf8UNlXUdq/J4yrmsIXh1nORzn3og3H X-Received: by 2002:a17:906:7f07:: with SMTP id d7mr4593603ejr.240.1623432287702; Fri, 11 Jun 2021 10:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623432287; cv=none; d=google.com; s=arc-20160816; b=TxuPz3UIfGf4EwWLk51dGMk95uEdmTOh02xyNI1trv1I0uh9p6MWO+vhLpDwrqs+9g NvZQEVwwyz5p2Oh9+SHHKYkGNQ3pru9NhNfmlXiicpKpQsES+cb2ymrqCUK83MJ2b4z+ NWhs240JOPmUXFPbup0TfKW7S0ZO42Ggma5DAseygVlsmqo5iNbofCO5/1OQoFrrmqaP XS5bjBFi5w4gzCD+WXjxY/ygVvBXzkH3ga9pryryqMBAiXzKDV55pQEg9m2hHgVbcl1h bbFSVCax/U2m/EkJWt66noQp+AWGZCgHDN2R2ICZSvZ8Fc187nUf2UvYhBJjz7U3LdbC ZiLA== 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 :ironport-sdr:ironport-sdr; bh=XyM2pt3bM9x6mrbZluwZxiOLb7Pa/TrDJlB1eLia6g8=; b=ejeAGJ0wFmJJmgMS08ES+aQ5aDIRxttOcw3+nWIRgqCgIIgrtCYgNrw5ExEsXP8Yj9 69dWVg2QLL9KOIlUJ1OT12IM2vGPrH0UyZLEERWhIjRoEUdrqu4zoXKre6mOwqripJ3h BGNzxl9y7ngLIEjV50psOpCTK7uMpD5eN7pqhKumGMiJMi514tyMzyW4n0yHTqsFZZbh eaSUn1qZJJdKfOL4DB++BGtGsM6clX13d+BOi4J2l8YEfmF7s34PLqjtH6c2e4GTgOsA HTj3vM9VzY67xUf3FXZ/dMmFpWQC0LJYYJsOV5rN7fjRsPExPMJXoILZrwIV4n6wznoC NtyQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf2si6215093ejb.500.2021.06.11.10.24.23; Fri, 11 Jun 2021 10:24:47 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbhFKRZN (ORCPT + 99 others); Fri, 11 Jun 2021 13:25:13 -0400 Received: from mga04.intel.com ([192.55.52.120]:4063 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbhFKRZI (ORCPT ); Fri, 11 Jun 2021 13:25:08 -0400 IronPort-SDR: hO+R290UXHoAaSJSuME/ndDQO5/wgyIgNS6AstbgjIth/eLM6gyE2TcoEFrDSjTkRWT/HI5xvx ypGB9R+6juNA== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="203736303" X-IronPort-AV: E=Sophos;i="5.83,267,1616482800"; d="scan'208";a="203736303" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 10:23:02 -0700 IronPort-SDR: 4i+fT2T1As8HkdjpSkkPnDzx3VtZbWksMoCKSu7s9TAtGFU6y5K4ELwo+Gx8S4tbuW+OBexGOg jrbJDfsXs29w== X-IronPort-AV: E=Sophos;i="5.83,267,1616482800"; d="scan'208";a="483339389" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 10:23:02 -0700 Date: Fri, 11 Jun 2021 10:23:01 -0700 From: Ira Weiny To: Dan Williams , Miklos Szeredi Cc: Vishal Verma , linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/3] fs/fuse: Remove unneeded kaddr parameter Message-ID: <20210611172301.GA1600546@iweiny-DESK2.sc.intel.com> References: <20210525172428.3634316-1-ira.weiny@intel.com> <20210525172428.3634316-2-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210525172428.3634316-2-ira.weiny@intel.com> User-Agent: Mutt/1.11.1 (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 10:24:26AM -0700, 'Ira Weiny' wrote: > From: Ira Weiny > > fuse_dax_mem_range_init() does not need the address or the pfn of the > memory requested in dax_direct_access(). It is only calling direct > access to get the number of pages. In looking for feedback on this small series I realize that I failed to email Miklos for the fs/fuse patch. I'm adding Miklos to the To line... For the rest of the series is there any feedback? Ira > > Remove the unused variables and stop requesting the kaddr and pfn from > dax_direct_access(). > > Reviewed-by: Dan Williams > Signed-off-by: Ira Weiny > --- > fs/fuse/dax.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c > index ff99ab2a3c43..34f8a5635c7f 100644 > --- a/fs/fuse/dax.c > +++ b/fs/fuse/dax.c > @@ -1234,8 +1234,6 @@ void fuse_dax_conn_free(struct fuse_conn *fc) > static int fuse_dax_mem_range_init(struct fuse_conn_dax *fcd) > { > long nr_pages, nr_ranges; > - void *kaddr; > - pfn_t pfn; > struct fuse_dax_mapping *range; > int ret, id; > size_t dax_size = -1; > @@ -1247,8 +1245,8 @@ static int fuse_dax_mem_range_init(struct fuse_conn_dax *fcd) > INIT_DELAYED_WORK(&fcd->free_work, fuse_dax_free_mem_worker); > > id = dax_read_lock(); > - nr_pages = dax_direct_access(fcd->dev, 0, PHYS_PFN(dax_size), &kaddr, > - &pfn); > + nr_pages = dax_direct_access(fcd->dev, 0, PHYS_PFN(dax_size), NULL, > + NULL); > dax_read_unlock(id); > if (nr_pages < 0) { > pr_debug("dax_direct_access() returned %ld\n", nr_pages); > -- > 2.28.0.rc0.12.gb6a658bd00c9 >