diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 00:42:19 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 00:42:19 -0500 |
commit | cf441eeb79c32471379f0a4d97feaef691432a03 (patch) | |
tree | 283347fcc807a87339a8244d3a45029eac90c825 /fs/xfs/xfs_iget.c | |
parent | 44866d39282d0782b15fa4cb62aad937bf0a0897 (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_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index fb69ef180b27..5363025ded7e 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -157,7 +157,7 @@ again: | |||
157 | goto again; | 157 | goto again; |
158 | } | 158 | } |
159 | 159 | ||
160 | vn_trace_exit(ip, "xfs_iget.alloc", | 160 | _xfs_itrace_exit(ip, "xfs_iget.alloc", |
161 | (inst_t *)__return_address); | 161 | (inst_t *)__return_address); |
162 | 162 | ||
163 | XFS_STATS_INC(xs_ig_found); | 163 | XFS_STATS_INC(xs_ig_found); |
@@ -212,7 +212,7 @@ finish_inode: | |||
212 | xfs_ilock(ip, lock_flags); | 212 | xfs_ilock(ip, lock_flags); |
213 | 213 | ||
214 | xfs_iflags_clear(ip, XFS_ISTALE); | 214 | xfs_iflags_clear(ip, XFS_ISTALE); |
215 | vn_trace_exit(ip, "xfs_iget.found", | 215 | _xfs_itrace_exit(ip, "xfs_iget.found", |
216 | (inst_t *)__return_address); | 216 | (inst_t *)__return_address); |
217 | goto return_ip; | 217 | goto return_ip; |
218 | } | 218 | } |
@@ -234,7 +234,7 @@ finish_inode: | |||
234 | return error; | 234 | return error; |
235 | } | 235 | } |
236 | 236 | ||
237 | vn_trace_exit(ip, "xfs_iget.alloc", (inst_t *)__return_address); | 237 | _xfs_itrace_exit(ip, "xfs_iget.alloc", (inst_t *)__return_address); |
238 | 238 | ||
239 | xfs_inode_lock_init(ip, vp); | 239 | xfs_inode_lock_init(ip, vp); |
240 | xfs_iocore_inode_init(ip); | 240 | xfs_iocore_inode_init(ip); |
@@ -467,7 +467,7 @@ xfs_iput(xfs_inode_t *ip, | |||
467 | { | 467 | { |
468 | bhv_vnode_t *vp = XFS_ITOV(ip); | 468 | bhv_vnode_t *vp = XFS_ITOV(ip); |
469 | 469 | ||
470 | vn_trace_entry(ip, "xfs_iput", (inst_t *)__return_address); | 470 | xfs_itrace_entry(ip); |
471 | xfs_iunlock(ip, lock_flags); | 471 | xfs_iunlock(ip, lock_flags); |
472 | VN_RELE(vp); | 472 | VN_RELE(vp); |
473 | } | 473 | } |
@@ -482,7 +482,7 @@ xfs_iput_new(xfs_inode_t *ip, | |||
482 | bhv_vnode_t *vp = XFS_ITOV(ip); | 482 | bhv_vnode_t *vp = XFS_ITOV(ip); |
483 | struct inode *inode = vn_to_inode(vp); | 483 | struct inode *inode = vn_to_inode(vp); |
484 | 484 | ||
485 | vn_trace_entry(ip, "xfs_iput_new", (inst_t *)__return_address); | 485 | xfs_itrace_entry(ip); |
486 | 486 | ||
487 | if ((ip->i_d.di_mode == 0)) { | 487 | if ((ip->i_d.di_mode == 0)) { |
488 | ASSERT(!xfs_iflags_test(ip, XFS_IRECLAIMABLE)); | 488 | ASSERT(!xfs_iflags_test(ip, XFS_IRECLAIMABLE)); |