aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-21 12:08:45 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-22 08:58:19 -0400
commit70ded2017072ae16aeaa7fb2a15a879a475161a6 (patch)
tree8eb125f0b56f2c55d529211def630c46b74c2267 /fs/nfs/dir.c
parent1ca42382afd67bf58523d36b00fb4ff487d8173b (diff)
NFS: Add tracepoints for debugging NFS rename and sillyrename issues
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index e41dec5cfbc9..dca7deb1609b 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1909,6 +1909,7 @@ int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1909 new_dentry->d_parent->d_name.name, new_dentry->d_name.name, 1909 new_dentry->d_parent->d_name.name, new_dentry->d_name.name,
1910 d_count(new_dentry)); 1910 d_count(new_dentry));
1911 1911
1912 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry);
1912 /* 1913 /*
1913 * For non-directories, check whether the target is busy and if so, 1914 * For non-directories, check whether the target is busy and if so,
1914 * make a copy of the dentry and then do a silly-rename. If the 1915 * make a copy of the dentry and then do a silly-rename. If the
@@ -1955,6 +1956,8 @@ int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1955out: 1956out:
1956 if (rehash) 1957 if (rehash)
1957 d_rehash(rehash); 1958 d_rehash(rehash);
1959 trace_nfs_rename_exit(old_dir, old_dentry,
1960 new_dir, new_dentry, error);
1958 if (!error) { 1961 if (!error) {
1959 if (new_inode != NULL) 1962 if (new_inode != NULL)
1960 nfs_drop_nlink(new_inode); 1963 nfs_drop_nlink(new_inode);