NFS: trace the uniquifier of fscache
authorChen Hanxiao <chenhx.fnst@fujitsu.com>
Wed, 6 Mar 2024 09:39:02 +0000 (17:39 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Mar 2024 14:14:51 +0000 (09:14 -0500)
Trace the mount option fsc=xxx.

Signed-off-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/fs_context.c

index 853e8d609bb3bcc81a505fa7cf03e1658a24ffc8..d0a0956f8a13462ab305e18c437719b0ed612158 100644 (file)
@@ -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;