diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-07-10 21:09:47 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 01:41:24 -0400 |
commit | 3a59c94c4b48878c6af047cdfc8c137d0fa7a0f0 (patch) | |
tree | 6945590171040dfa6eba6335fd8312a9fbf0baf1 /fs/xfs/xfs_inode.c | |
parent | b11f94d537e6b69f13770143fd7ded3d09fdbaab (diff) |
[XFS] Clean up function name handling in tracing code
Remove the hardcoded "fnames" for tracing, and just embed them in tracing
macros via __FUNCTION__. Kills a lot of #ifdefs too.
SGI-PV: 967353
SGI-Modid: xfs-linux-melb:xfs-kern:29099a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 59829523ab07..cdc4c28926d0 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -645,8 +645,7 @@ xfs_iformat_extents( | |||
645 | ep->l1 = INT_GET(get_unaligned((__uint64_t*)&dp->l1), | 645 | ep->l1 = INT_GET(get_unaligned((__uint64_t*)&dp->l1), |
646 | ARCH_CONVERT); | 646 | ARCH_CONVERT); |
647 | } | 647 | } |
648 | xfs_bmap_trace_exlist("xfs_iformat_extents", ip, nex, | 648 | XFS_BMAP_TRACE_EXLIST(ip, nex, whichfork); |
649 | whichfork); | ||
650 | if (whichfork != XFS_DATA_FORK || | 649 | if (whichfork != XFS_DATA_FORK || |
651 | XFS_EXTFMT_INODE(ip) == XFS_EXTFMT_NOSTATE) | 650 | XFS_EXTFMT_INODE(ip) == XFS_EXTFMT_NOSTATE) |
652 | if (unlikely(xfs_check_nostate_extents( | 651 | if (unlikely(xfs_check_nostate_extents( |
@@ -2894,9 +2893,6 @@ xfs_iextents_copy( | |||
2894 | int copied; | 2893 | int copied; |
2895 | xfs_bmbt_rec_t *dest_ep; | 2894 | xfs_bmbt_rec_t *dest_ep; |
2896 | xfs_bmbt_rec_t *ep; | 2895 | xfs_bmbt_rec_t *ep; |
2897 | #ifdef XFS_BMAP_TRACE | ||
2898 | static char fname[] = "xfs_iextents_copy"; | ||
2899 | #endif | ||
2900 | int i; | 2896 | int i; |
2901 | xfs_ifork_t *ifp; | 2897 | xfs_ifork_t *ifp; |
2902 | int nrecs; | 2898 | int nrecs; |
@@ -2907,7 +2903,7 @@ xfs_iextents_copy( | |||
2907 | ASSERT(ifp->if_bytes > 0); | 2903 | ASSERT(ifp->if_bytes > 0); |
2908 | 2904 | ||
2909 | nrecs = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); | 2905 | nrecs = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); |
2910 | xfs_bmap_trace_exlist(fname, ip, nrecs, whichfork); | 2906 | XFS_BMAP_TRACE_EXLIST(ip, nrecs, whichfork); |
2911 | ASSERT(nrecs > 0); | 2907 | ASSERT(nrecs > 0); |
2912 | 2908 | ||
2913 | /* | 2909 | /* |