diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-11-01 15:33:55 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-11-03 21:28:46 -0500 |
commit | 43622eab8d0adedbb06380a355b941289d495f57 (patch) | |
tree | b2c45df71d9cc0237d6afacc3e34a92845cfa5ae /fs/nfs/export.c | |
parent | 70d136b2dc184f1c9d026de443dbe635ea8a0839 (diff) | |
download | linux-43622eab8d0adedbb06380a355b941289d495f57.tar.bz2 |
NFS: Add a tracepoint in nfs_fh_to_dentry()
Add a tracepoint in nfs_fh_to_dentry() for debugging issues with bad
userspace filehandles.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/export.c')
-rw-r--r-- | fs/nfs/export.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/export.c b/fs/nfs/export.c index deecb67638aa..3430d6891e89 100644 --- a/fs/nfs/export.c +++ b/fs/nfs/export.c @@ -105,6 +105,7 @@ nfs_fh_to_dentry(struct super_block *sb, struct fid *fid, ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, label, NULL); if (ret) { dprintk("%s: getattr failed %d\n", __func__, ret); + trace_nfs_fh_to_dentry(sb, server_fh, fattr->fileid, ret); dentry = ERR_PTR(ret); goto out_free_label; } |