aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-06-23 21:57:09 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:44 -0400
commitcca28fb83d9e60779bb348edc33a62068e5f04a4 (patch)
tree182ab465eadfb00ff4e1d0717b6dea127cba18e3 /fs/xfs/linux-2.6/xfs_super.c
parentf2d6761433d69d94e0b39ac44ef0f0f0b0508065 (diff)
xfs: split xfs_itrace_entry
Replace the xfs_itrace_entry catchall with specific trace points. For most simple callers we now use the simple inode class, which used to be the iget class, but add more details tracing for namespace events, which now includes the name of the directory entries manipulated. Remove the xfs_inactive trace point, which is a duplicate of the clear_inode one, and the xfs_change_file_space trace point, which is immediately followed by the more specific alloc/free space trace points. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 0ac1df74341f..22faaea5f3e1 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -907,7 +907,7 @@ xfs_fs_destroy_inode(
907{ 907{
908 struct xfs_inode *ip = XFS_I(inode); 908 struct xfs_inode *ip = XFS_I(inode);
909 909
910 xfs_itrace_entry(ip); 910 trace_xfs_destroy_inode(ip);
911 911
912 XFS_STATS_INC(vn_reclaim); 912 XFS_STATS_INC(vn_reclaim);
913 913
@@ -1040,7 +1040,7 @@ xfs_fs_write_inode(
1040 struct xfs_mount *mp = ip->i_mount; 1040 struct xfs_mount *mp = ip->i_mount;
1041 int error = EAGAIN; 1041 int error = EAGAIN;
1042 1042
1043 xfs_itrace_entry(ip); 1043 trace_xfs_write_inode(ip);
1044 1044
1045 if (XFS_FORCED_SHUTDOWN(mp)) 1045 if (XFS_FORCED_SHUTDOWN(mp))
1046 return XFS_ERROR(EIO); 1046 return XFS_ERROR(EIO);
@@ -1107,7 +1107,8 @@ xfs_fs_clear_inode(
1107{ 1107{
1108 xfs_inode_t *ip = XFS_I(inode); 1108 xfs_inode_t *ip = XFS_I(inode);
1109 1109
1110 xfs_itrace_entry(ip); 1110 trace_xfs_clear_inode(ip);
1111
1111 XFS_STATS_INC(vn_rele); 1112 XFS_STATS_INC(vn_rele);
1112 XFS_STATS_INC(vn_remove); 1113 XFS_STATS_INC(vn_remove);
1113 XFS_STATS_DEC(vn_active); 1114 XFS_STATS_DEC(vn_active);