Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp954505lqs; Wed, 6 Mar 2024 01:40:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWBud1+VEumPXw9WI4JeXvTsRUiW6i/u/KChIbnd0/MwMBHnMLDI+hJiLaIwKVPiubjIFesJ6vjCAln9/C8aRMr9FcoovDQlTjYVJhjw== X-Google-Smtp-Source: AGHT+IG49kXA8VcwvFMgexr2SHUCljjDxr7kWC/sKUUafQjmkyXLczbAtf0b49MdEDnSBDP2CMle X-Received: by 2002:a05:6402:2313:b0:565:c814:d891 with SMTP id l19-20020a056402231300b00565c814d891mr11236623eda.0.1709718051500; Wed, 06 Mar 2024 01:40:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709718051; cv=pass; d=google.com; s=arc-20160816; b=1GRZrvx8l4yDSZYrISG3Lmlh64GZPhuRs9hq4lJaoq4Y4ONbbzlNbPjUhtpemXRaXD XfbvXG8CCjPIuDMGYBEJYtqoPsYYhROyyGOaWghjbspeg2o9NAQZjVCqWpEKAh2jiOIc ySlkWgyklaHlj25TQgTCfFrtUBjGSV1AxcdNY0mqfaHj2V8X/yQKopGBV5x4LO4kptOC w8zRdRfDisw0NXxTrtY17XND1AeNzTej9YeNx6wRp/tce1Fv2P6/OjeEl9QUVEof4ijs l0IlkIg803Zcg+IgrmLDYXa6WSWJx6XU+6I1NzMoMkwVZnhwNAu7BzrSPotvNF1LjPP/ ZUFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=eyKRYw62KrGF5qVigHUBl/1lKxtjTCBL2EYT3XEgo98=; fh=U2H5DslYRBZLJZYrTDrOntbkBUSmWOc4Ef8yVMtpWW8=; b=NcM/bqUvnUdCTmJeeHaYFQPdpMFRuKnIs2V5efaBd0XowbWkX+PQ8NZGTO5WuapszG YFVoan5jPJCiisFalckKMnE/TeJSu+tjmFLjXZKOY1WVnKacST9gvVMlk1seAXx7CWC6 K+CSnKUKkrJUcpAEklN4NRaLCDNHObLtFiMrRVDgGDjwlb17t1GOkcLQ8LBYDNhLjDQG P8VrOMgJu4Z/apUabMZTbrBRjI44p3fKJnA+4hO3Cegg89FplOHrorSvQTzyDdJ8Zlzq h9QOV52mEImPD+qK49yY5miR9oSDNFceiaL7rRlt/2knzhZjRgYXEcbz4hDOBxnx1drk eQ+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@fujitsu.com header.s=fj2 header.b=tp7gVJWL; arc=pass (i=1 spf=pass spfdomain=fujitsu.com dkim=pass dkdomain=fujitsu.com dmarc=pass fromdomain=fujitsu.com); spf=pass (google.com: domain of linux-nfs+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i29-20020a50871d000000b00567f25990absi276024edb.194.2024.03.06.01.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 01:40:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@fujitsu.com header.s=fj2 header.b=tp7gVJWL; arc=pass (i=1 spf=pass spfdomain=fujitsu.com dkim=pass dkdomain=fujitsu.com dmarc=pass fromdomain=fujitsu.com); spf=pass (google.com: domain of linux-nfs+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=fujitsu.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3E1BE1F2658A for ; Wed, 6 Mar 2024 09:40:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE93A1EEE9; Wed, 6 Mar 2024 09:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b="tp7gVJWL" X-Original-To: linux-nfs@vger.kernel.org Received: from esa6.hc1455-7.c3s2.iphmx.com (esa6.hc1455-7.c3s2.iphmx.com [68.232.139.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 688265EE7B for ; Wed, 6 Mar 2024 09:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.139.139 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709718045; cv=none; b=QgzExn3Vvga+IFdh2LdWgTtelO+6grhawgUvYc3A8buF0VRZ8DB5k05GqCgo57SSXZg7Z3r6/7LwiRWrVbqKCNj/xlK3ItO+G3YD7yXRUOlREj9oABL+zgCirehVvafQ72PPaR+MRR/SKtGeofhA1cN673t1Clq9073KQvs5QaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709718045; c=relaxed/simple; bh=w+p9x6CmwdMGCJmm69YoKI9Ku/1jrBSw7soBg8rgcac=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=scw7NvyPzFVK/Dzw5OJNzMeTfv8Lq1rQUVS1k7v/CUTONd4NjuBw/0YqjiYbGMZ2qEHQf0ZweHTqrQaoOu7nsWoMf78Q1kbfY4z5CutxieKzwRz7bYUvSxB1T1Y9hm7EvFwNdr1iSmNTf4IRx9zeJEtWkd42Dk6jkFH+eOIVFwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fujitsu.com; spf=pass smtp.mailfrom=fujitsu.com; dkim=pass (2048-bit key) header.d=fujitsu.com header.i=@fujitsu.com header.b=tp7gVJWL; arc=none smtp.client-ip=68.232.139.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fujitsu.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1709718043; x=1741254043; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=w+p9x6CmwdMGCJmm69YoKI9Ku/1jrBSw7soBg8rgcac=; b=tp7gVJWLNJs5ZYfv4ZrEnWXjEYMGBFaFirFBsi4V3zAp1uo5chwXrPp8 E2xtfDfl9lIZB7evvKOOhnOIkjwHFoDI6sUaqgY3jfw+XD8sP4SmKUIib TOUZ7kMs3oQkez4Xy49sA/X934WkeHWyIfIl9RIzI6Bgq2A8UpfWdjLG7 Pw8JvqBe+kSg6GnT21lsytFwqemSKRNIMaeEbqwoBOVTBGdeQCgXaqPdX bqY/RRDcuODfdIR1HSev0YqqSZQEk12bxQpfxVKNchBWFFJz0lETSsDXz ZXudt056G4o5b2ws5FTeO5Nv4bsyi9do+hngp6icQN8C+8gvhwgE65uwg A==; X-IronPort-AV: E=McAfee;i="6600,9927,11004"; a="153202203" X-IronPort-AV: E=Sophos;i="6.06,207,1705330800"; d="scan'208";a="153202203" Received: from unknown (HELO yto-r3.gw.nic.fujitsu.com) ([218.44.52.219]) by esa6.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2024 18:39:31 +0900 Received: from yto-m4.gw.nic.fujitsu.com (yto-nat-yto-m4.gw.nic.fujitsu.com [192.168.83.67]) by yto-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id A1603E9BA6 for ; Wed, 6 Mar 2024 18:39:28 +0900 (JST) Received: from kws-ab4.gw.nic.fujitsu.com (kws-ab4.gw.nic.fujitsu.com [192.51.206.22]) by yto-m4.gw.nic.fujitsu.com (Postfix) with ESMTP id E6501F658 for ; Wed, 6 Mar 2024 18:39:27 +0900 (JST) Received: from edo.cn.fujitsu.com (edo.cn.fujitsu.com [10.167.33.5]) by kws-ab4.gw.nic.fujitsu.com (Postfix) with ESMTP id 6C0F841189 for ; Wed, 6 Mar 2024 18:39:27 +0900 (JST) Received: from G08FNSTD200033.g08.fujitsu.local (unknown [10.167.225.189]) by edo.cn.fujitsu.com (Postfix) with ESMTP id C3BE11A006D; Wed, 6 Mar 2024 17:39:26 +0800 (CST) From: Chen Hanxiao To: Trond Myklebust , Anna Schumaker Cc: Jeff Layton , linux-nfs@vger.kernel.org Subject: [PATCH v2] NFS: trace the uniquifier of fscache Date: Wed, 6 Mar 2024 17:39:02 +0800 Message-Id: <20240306093902.220-1-chenhx.fnst@fujitsu.com> X-Mailer: git-send-email 2.37.1.windows.1 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1417-9.0.0.1002-28234.006 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-28234.006 X-TMASE-Result: 10--2.242600-10.000000 X-TMASE-MatchedRID: zIrlg0XZqis23LDAh/mSxUrOO5m0+0gEBGvINcfHqhfmWHHSYEnI8b8F Hrw7frluf146W0iUu2tU3a+owMO/avTPTYKNobBkngIgpj8eDcBpkajQR5gb3savT21DsLD/UEh Wy9W70AHfd+P6wwCt85Rncg/kBNofFJPUiNHDrjG4dnFmTLeMnCzKE0WNtifrOgJl/YKuJMRMH/ ErkTGlbc+zeMtF+8FHc40Rdkzo8HcoRrvD1h5xpV8+5m37I8PKEWW0bEJOTAVAdUD6vW8Z1mZAM QMIyK6zB8/x9JIi8hKhgLRzA45JPQ== X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 Trace the mount option fsc=xxx. Signed-off-by: Chen Hanxiao --- v2: remove useless NULL check and update commit messages fs/nfs/fs_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 853e8d609bb3..d0a0956f8a13 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -652,6 +652,7 @@ static int nfs_fs_context_parse_param(struct fs_context *fc, ctx->fscache_uniq = NULL; break; case Opt_fscache: + trace_nfs_mount_assign(param->key, param->string); ctx->options |= NFS_OPTION_FSCACHE; kfree(ctx->fscache_uniq); ctx->fscache_uniq = param->string; -- 2.39.1