Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp144386pxm; Wed, 2 Mar 2022 12:08:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7byY4kyYPg5ZuV0pfVeR2DI/xUa1c/sz6Rrb5slQXG0nj4oMAT61o+D+l28MWYtQW4keT X-Received: by 2002:a17:907:6d14:b0:6d9:565a:ed0 with SMTP id sa20-20020a1709076d1400b006d9565a0ed0mr4111559ejc.331.1646251690971; Wed, 02 Mar 2022 12:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646251690; cv=none; d=google.com; s=arc-20160816; b=ow+abuN0TgrorYyi2+F5da92uVv6thpF7tAqJ7C0QZrdoYviIbkUzAE+5K0HHiWjKH dgULdZLZbH03y/UjWRXQhH/44SPApYty4oNz8Ku0IxsSDytE+ePsuHEMPN8BTyoUNz3x WPV3c4v48u+yj4Ip1z80+SGGAp/SvMhqDPurlfzqFVDbEHcJvXP9onZMbR1tZt1sz15v FCs03iyPsZtkFXd4J5bTeDAg59CRfu64kcPBWJP6quK0E22iUjlsIIuh0IADdmGdzfXw MX+B0mlKdT2ar78JufWs7vw87XmrzFO6zY4amvbI1/U4fD7NT6jWfS2HJq+2Ak7V37kB BGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lq5ruRBi68qvEv/EHToHm1XDlx/YONnzVJ9bTurxQ4Q=; b=L6CUe7o6C9JAvxQTqpsWJ/PMHzHI92tMO1UhUvcP6zxJa9FyZGsnxlI1qIma41bQg8 RXnBtgasvDy3LuIOtVlvIJSHl7R3VDCs+AxivSi1D3wsDpb/hq2spW1m23ewUvM/i2+F aY7PX4qNJcYCVbuhCLjmTjMa9kx5tez15c36QQ7BEzylcXrBrv8Ti5XtR+/kRLx8oDn5 WYhoDwg/VxWBZY/NGtB+EWoagwSr+N6RebNuf5udlCDep25FAFTCC5EhdYuqg5GZOOGb HeUd/XJf6PyqR3t2vCBwyej7Q98KHjEpdECh38eSyIXj47kRbsc9IXh5GaMg2oPnhJVz LewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEyxiqDt; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a170906390e00b006d087a29f8dsi3194eje.512.2022.03.02.12.07.18; Wed, 02 Mar 2022 12:08:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEyxiqDt; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236752AbiCATjV (ORCPT + 99 others); Tue, 1 Mar 2022 14:39:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237000AbiCATjU (ORCPT ); Tue, 1 Mar 2022 14:39:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 156366548D for ; Tue, 1 Mar 2022 11:38:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646163518; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lq5ruRBi68qvEv/EHToHm1XDlx/YONnzVJ9bTurxQ4Q=; b=BEyxiqDtxxvFVJf/lk4nKhnfBcH5sop2fcfUCgbrZnwyi7PFknxApDncaPPFEoDSISRRcO X0w7MWTEwBDm+Ry8zWGc4N1DsEl3NoXl/gvqE58drQailbZh01Kv6sf+U9rZedHmOjNMfu KxcydLFFLcpCwAhnwQ4CwbpYz0gFIp0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-616-YAZoWjnwMhaJcHnPahIlIg-1; Tue, 01 Mar 2022 14:38:35 -0500 X-MC-Unique: YAZoWjnwMhaJcHnPahIlIg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 25BE91006AA8; Tue, 1 Mar 2022 19:38:34 +0000 (UTC) Received: from dwysocha.rdu.csb (unknown [10.22.9.75]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E3765DF37; Tue, 1 Mar 2022 19:38:33 +0000 (UTC) From: Dave Wysochanski To: Anna Schumaker , Trond Myklebust Cc: linux-nfs@vger.kernel.org, linux-cachefs@redhat.com, David Howells Subject: [PATCH 4/4] NFS: Remove remaining dfprintks related to fscache and remove NFSDBG_FSCACHE Date: Tue, 1 Mar 2022 14:37:27 -0500 Message-Id: <20220301193727.18847-5-dwysocha@redhat.com> In-Reply-To: <20220301193727.18847-1-dwysocha@redhat.com> References: <20220301193727.18847-1-dwysocha@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The fscache cookie APIs including fscache_acquire_cookie() and fscache_relinquish_cookie() now have very good tracing. Thus, there is no real need for dfprintks in the NFS fscache interface. The NFS fscache interface has removed all dfprintks so remove the NFSDBG_FSCACHE defines. Signed-off-by: Dave Wysochanski --- fs/nfs/fscache.c | 10 ---------- include/uapi/linux/nfs_fs.h | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index 841b69aef189..4dee53ceb941 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c @@ -21,8 +21,6 @@ #include "fscache.h" #include "nfstrace.h" -#define NFSDBG_FACILITY NFSDBG_FSCACHE - #define NFS_MAX_KEY_LEN 1000 static bool nfs_append_int(char *key, int *_len, unsigned long long x) @@ -129,8 +127,6 @@ int nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int u vcookie = fscache_acquire_volume(key, NULL, /* preferred_cache */ NULL, 0 /* coherency_data */); - dfprintk(FSCACHE, "NFS: get superblock cookie (0x%p/0x%p)\n", - nfss, vcookie); if (IS_ERR(vcookie)) { if (vcookie != ERR_PTR(-EBUSY)) { kfree(key); @@ -153,9 +149,6 @@ void nfs_fscache_release_super_cookie(struct super_block *sb) { struct nfs_server *nfss = NFS_SB(sb); - dfprintk(FSCACHE, "NFS: releasing superblock cookie (0x%p/0x%p)\n", - nfss, nfss->fscache); - fscache_relinquish_volume(nfss->fscache, NULL, false); nfss->fscache = NULL; kfree(nfss->fscache_uniq); @@ -193,8 +186,6 @@ void nfs_fscache_clear_inode(struct inode *inode) struct nfs_inode *nfsi = NFS_I(inode); struct fscache_cookie *cookie = nfs_i_fscache(inode); - dfprintk(FSCACHE, "NFS: clear cookie (0x%p/0x%p)\n", nfsi, cookie); - fscache_relinquish_cookie(cookie, false); nfsi->fscache = NULL; } @@ -229,7 +220,6 @@ void nfs_fscache_open_file(struct inode *inode, struct file *filp) fscache_use_cookie(cookie, open_for_write); if (open_for_write) { - dfprintk(FSCACHE, "NFS: nfsi 0x%p disabling cache\n", nfsi); nfs_fscache_update_auxdata(&auxdata, inode); fscache_invalidate(cookie, &auxdata, i_size_read(inode), FSCACHE_INVAL_DIO_WRITE); diff --git a/include/uapi/linux/nfs_fs.h b/include/uapi/linux/nfs_fs.h index 3afe3767c55d..ae0de165c014 100644 --- a/include/uapi/linux/nfs_fs.h +++ b/include/uapi/linux/nfs_fs.h @@ -52,7 +52,7 @@ #define NFSDBG_CALLBACK 0x0100 #define NFSDBG_CLIENT 0x0200 #define NFSDBG_MOUNT 0x0400 -#define NFSDBG_FSCACHE 0x0800 +#define NFSDBG_FSCACHE 0x0800 /* unused */ #define NFSDBG_PNFS 0x1000 #define NFSDBG_PNFS_LD 0x2000 #define NFSDBG_STATE 0x4000 -- 2.27.1