aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rename.c
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-07 00:42:19 -0500
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-07 00:42:19 -0500
commitcf441eeb79c32471379f0a4d97feaef691432a03 (patch)
tree283347fcc807a87339a8244d3a45029eac90c825 /fs/xfs/xfs_rename.c
parent44866d39282d0782b15fa4cb62aad937bf0a0897 (diff)
[XFS] clean up vnode/inode tracing
Simplify vnode tracing calls by embedding function name & return addr in the calling macro. Also do a lot of vnode->inode renaming for consistency, while we're at it. SGI-PV: 970335 SGI-Modid: xfs-linux-melb:xfs-kern:29650a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_rename.c')
-rw-r--r--fs/xfs/xfs_rename.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c
index 44ea0ba36476..17e7496bdd5f 100644
--- a/fs/xfs/xfs_rename.c
+++ b/fs/xfs/xfs_rename.c
@@ -118,7 +118,7 @@ xfs_lock_for_rename(
118 inum1 = ip1->i_ino; 118 inum1 = ip1->i_ino;
119 119
120 ASSERT(ip1); 120 ASSERT(ip1);
121 ITRACE(ip1); 121 xfs_itrace_ref(ip1);
122 122
123 /* 123 /*
124 * Unlock dp1 and lock dp2 if they are different. 124 * Unlock dp1 and lock dp2 if they are different.
@@ -141,7 +141,7 @@ xfs_lock_for_rename(
141 IRELE (ip1); 141 IRELE (ip1);
142 return error; 142 return error;
143 } else { 143 } else {
144 ITRACE(ip2); 144 xfs_itrace_ref(ip2);
145 } 145 }
146 146
147 /* 147 /*
@@ -247,8 +247,8 @@ xfs_rename(
247 int src_namelen = VNAMELEN(src_vname); 247 int src_namelen = VNAMELEN(src_vname);
248 int target_namelen = VNAMELEN(target_vname); 248 int target_namelen = VNAMELEN(target_vname);
249 249
250 vn_trace_entry(src_dp, "xfs_rename", (inst_t *)__return_address); 250 xfs_itrace_entry(src_dp);
251 vn_trace_entry(xfs_vtoi(target_dir_vp), "xfs_rename", (inst_t *)__return_address); 251 xfs_itrace_entry(xfs_vtoi(target_dir_vp));
252 252
253 /* 253 /*
254 * Find the XFS behavior descriptor for the target directory 254 * Find the XFS behavior descriptor for the target directory