aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-21 13:54:44 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-22 08:58:20 -0400
commit1fd1085b49f8cafbd0ce4e4682c209a31f7b287f (patch)
tree82bc8631aedfc1e5d633c4357c7a378e93f11505 /fs/nfs/dir.c
parent70ded2017072ae16aeaa7fb2a15a879a475161a6 (diff)
NFS: Add tracepoints for debugging NFS hard links
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index dca7deb1609b..4ce7f7696e11 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1860,6 +1860,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
1860 old_dentry->d_parent->d_name.name, old_dentry->d_name.name, 1860 old_dentry->d_parent->d_name.name, old_dentry->d_name.name,
1861 dentry->d_parent->d_name.name, dentry->d_name.name); 1861 dentry->d_parent->d_name.name, dentry->d_name.name);
1862 1862
1863 trace_nfs_link_enter(inode, dir, dentry);
1863 NFS_PROTO(inode)->return_delegation(inode); 1864 NFS_PROTO(inode)->return_delegation(inode);
1864 1865
1865 d_drop(dentry); 1866 d_drop(dentry);
@@ -1868,6 +1869,7 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
1868 ihold(inode); 1869 ihold(inode);
1869 d_add(dentry, inode); 1870 d_add(dentry, inode);
1870 } 1871 }
1872 trace_nfs_link_exit(inode, dir, dentry, error);
1871 return error; 1873 return error;
1872} 1874}
1873EXPORT_SYMBOL_GPL(nfs_link); 1875EXPORT_SYMBOL_GPL(nfs_link);