diff mbox series

[v2] NFS: trace the uniquifier of fscache

Message ID 20240306093902.220-1-chenhx.fnst@fujitsu.com (mailing list archive)
State New
Headers show
Series [v2] NFS: trace the uniquifier of fscache | expand

Commit Message

Chen Hanxiao March 6, 2024, 9:39 a.m. UTC
Trace the mount option fsc=xxx.

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
---
v2:
   remove useless NULL check and update commit messages

 fs/nfs/fs_context.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;