Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1207633pxj; Fri, 18 Jun 2021 01:52:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGsSGV5cOsxaIYsxE0LJ3XQopELfN0oRySc7+1056KXWY7xF3T7DeTqMudHG5wFgDegjBG X-Received: by 2002:a5d:8184:: with SMTP id u4mr6910256ion.96.1624006341510; Fri, 18 Jun 2021 01:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624006341; cv=none; d=google.com; s=arc-20160816; b=qUraZdw9qypAL1jcyuN2B4HLrL3eFbCnUn8nD7egASBjA54ldOcF6oXArOntUuYVH+ UlpR96+ZVIQRpx7Te13hXn9eAJz1UiG8d5mEstrPzvZDiKrRkN5Nigj95mnW83GMDzkk A9j4GOBcvXZCCVwOecg+XcShMApp1J3mLhjpItyP2JK1iRt2aCkABw2Sn0XaHupIE3JM eT0giwnWDB27ksLzHITpJE4YGqMQmpn9vYFi2yUMBXXGVJnLLBQCEh+8gzEgtIDJi+TZ dha592nl/F6+xZjjoz1hcPb6iI/znbq9O8mZDeAL5my8TRpNZn1vNyBNyR51NP3uI6NM 3qcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OH59EQaFszbJ3L0jQevna/zcsPt7eeIqoBHNldN0uLk=; b=0Mpuox74ihihHbzbz2YXllXmGlUxd0uisDBP86KouiZUZAft4JZW9RF+fb+FX6plyR 89VFOy/3hdqjArmGpXBi34v+SGF6AcRoMz2p5pCfHe0iw6U+jqQWfeujEjCH+7BnrWOr 2v0a8GYURkEs1tpzKd3ecoY5LWSNt5+SmcP29boi28jgeiwv3Gkvm56Ux2K59lvZRVi6 2EobcqOqNt8TJ0QhGGhzfysgm9iCes7zfN/HAqfp7Z0jnMc+Rsru1+DHl+3JHm/Q24IS rfuBzDCyHFYJSyl9/EjmY1jDHO9IKSvqkl0v4PUbcomsXVRVKR5T8zrPQrCrUMTc0JKA 2mXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=RQYKJB2j; 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 x15si1899976ilu.105.2021.06.18.01.52.09; Fri, 18 Jun 2021 01:52:21 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=RQYKJB2j; 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 S231759AbhFRHEB (ORCPT + 99 others); Fri, 18 Jun 2021 03:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhFRHEA (ORCPT ); Fri, 18 Jun 2021 03:04:00 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB935C06175F for ; Fri, 18 Jun 2021 00:01:50 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id f21so4438450vsl.4 for ; Fri, 18 Jun 2021 00:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OH59EQaFszbJ3L0jQevna/zcsPt7eeIqoBHNldN0uLk=; b=RQYKJB2jgxRi/Zfa5bMBWe0fok+eeJXe2E+YIRAprXYu6i1q/sRvFlP7B0dcy12i/s 5CpI8HMXxFHPznXGW23UZ/dGLVCIOHqzCrtlxPvC3frBINMEIHRvwrMhZiJa4nN3XPQi tuHTOvFUk6OY3SdDp7GkjCETLT0r+I31n9sIM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OH59EQaFszbJ3L0jQevna/zcsPt7eeIqoBHNldN0uLk=; b=DwIF5oKqxPGfTnpGevASq9ItkaqktgsTU4GBz7HozZ/Gwm56R9H7WZ0/ur0lEzBlIK SpsiBZt8YG3D81C9fv6upJKXOjqo11VB22Av1UWPENA+KL1LWzsj+xhG6TyUVtO8G2ST wlDB78XSYcRNVo/7CHUlqTaSl2n2xfz6FEI1Dx+KJ218v8bcmV1jfybf3LE1fBZCF+cB IILOTDdZTQ/mmVaX33wKDDhDrHkpCIAWyqAaACjxEkNkBCgYjMOFMCAWUIss88XfzNxy ThHbWtjfpEQBxVsYWFuVGz3prL2HJQUSB9pObBiOEM47SzYkT0uMStqkXkgYia3V9QSV jxKg== X-Gm-Message-State: AOAM532W97ljldI/cZlzUVlA4jFPDlCYV1qPMRasC3py82BqgJ9damx6 z3vSbr+q7heBUfRTdH5oNqjBiycvbxyicxQ295Z0cQ== X-Received: by 2002:a67:f659:: with SMTP id u25mr5191118vso.9.1623999709975; Fri, 18 Jun 2021 00:01:49 -0700 (PDT) MIME-Version: 1.0 References: <20210525172428.3634316-1-ira.weiny@intel.com> <20210525172428.3634316-2-ira.weiny@intel.com> <20210611172301.GA1600546@iweiny-DESK2.sc.intel.com> In-Reply-To: <20210611172301.GA1600546@iweiny-DESK2.sc.intel.com> From: Miklos Szeredi Date: Fri, 18 Jun 2021 09:01:39 +0200 Message-ID: Subject: Re: [PATCH 1/3] fs/fuse: Remove unneeded kaddr parameter To: Ira Weiny Cc: Dan Williams , Vishal Verma , linux-kernel@vger.kernel.org, linux-nvdimm , linux-fsdevel@vger.kernel.org, Vivek Goyal Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Jun 2021 at 19:23, Ira Weiny wrote: > > 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... LGTM, but this is Vivek's code, so adding Cc. Thanks, Miklos > > 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 > >