diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-28 21:46:47 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 21:39:25 -0400 |
commit | 1543d79c45a374f934f95ca34d87e2eeeb2039b4 (patch) | |
tree | abe537e7c241f2a764687c54d805ebfdb5147e3c /fs/xfs/xfs_vnodeops.c | |
parent | b677c210cec0d6755335ffc01691982c417dd39e (diff) |
[XFS] move v_trace from bhv_vnode to xfs_inode
struct bhv_vnode is on it's way out, so move the trace buffer to the XFS
inode. Note that this makes the tracing macros rather misnamed, but this
kind of fallout will be fixed up incrementally later on.
SGI-PV: 969608
SGI-Modid: xfs-linux-melb:xfs-kern:29498a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index e7ef78fb4da3..98653793b34a 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -88,7 +88,7 @@ xfs_getattr( | |||
88 | bhv_vnode_t *vp = XFS_ITOV(ip); | 88 | bhv_vnode_t *vp = XFS_ITOV(ip); |
89 | xfs_mount_t *mp = ip->i_mount; | 89 | xfs_mount_t *mp = ip->i_mount; |
90 | 90 | ||
91 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 91 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
92 | 92 | ||
93 | if (XFS_FORCED_SHUTDOWN(mp)) | 93 | if (XFS_FORCED_SHUTDOWN(mp)) |
94 | return XFS_ERROR(EIO); | 94 | return XFS_ERROR(EIO); |
@@ -228,7 +228,7 @@ xfs_setattr( | |||
228 | int file_owner; | 228 | int file_owner; |
229 | int need_iolock = 1; | 229 | int need_iolock = 1; |
230 | 230 | ||
231 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 231 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
232 | 232 | ||
233 | if (XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY) | 233 | if (XFS_MTOVFS(mp)->vfs_flag & VFS_RDONLY) |
234 | return XFS_ERROR(EROFS); | 234 | return XFS_ERROR(EROFS); |
@@ -915,7 +915,7 @@ xfs_access( | |||
915 | { | 915 | { |
916 | int error; | 916 | int error; |
917 | 917 | ||
918 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 918 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
919 | 919 | ||
920 | xfs_ilock(ip, XFS_ILOCK_SHARED); | 920 | xfs_ilock(ip, XFS_ILOCK_SHARED); |
921 | error = xfs_iaccess(ip, mode, credp); | 921 | error = xfs_iaccess(ip, mode, credp); |
@@ -987,7 +987,7 @@ xfs_readlink( | |||
987 | int pathlen; | 987 | int pathlen; |
988 | int error = 0; | 988 | int error = 0; |
989 | 989 | ||
990 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 990 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
991 | 991 | ||
992 | if (XFS_FORCED_SHUTDOWN(mp)) | 992 | if (XFS_FORCED_SHUTDOWN(mp)) |
993 | return XFS_ERROR(EIO); | 993 | return XFS_ERROR(EIO); |
@@ -1033,7 +1033,7 @@ xfs_fsync( | |||
1033 | int error; | 1033 | int error; |
1034 | int log_flushed = 0, changed = 1; | 1034 | int log_flushed = 0, changed = 1; |
1035 | 1035 | ||
1036 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 1036 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
1037 | 1037 | ||
1038 | ASSERT(start >= 0 && stop >= -1); | 1038 | ASSERT(start >= 0 && stop >= -1); |
1039 | 1039 | ||
@@ -1592,7 +1592,7 @@ xfs_inactive( | |||
1592 | int error; | 1592 | int error; |
1593 | int truncate; | 1593 | int truncate; |
1594 | 1594 | ||
1595 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 1595 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
1596 | 1596 | ||
1597 | /* | 1597 | /* |
1598 | * If the inode is already free, then there can be nothing | 1598 | * If the inode is already free, then there can be nothing |
@@ -1805,7 +1805,7 @@ xfs_lookup( | |||
1805 | int error; | 1805 | int error; |
1806 | uint lock_mode; | 1806 | uint lock_mode; |
1807 | 1807 | ||
1808 | vn_trace_entry(XFS_ITOV(dp), __FUNCTION__, (inst_t *)__return_address); | 1808 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
1809 | 1809 | ||
1810 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) | 1810 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) |
1811 | return XFS_ERROR(EIO); | 1811 | return XFS_ERROR(EIO); |
@@ -1849,7 +1849,7 @@ xfs_create( | |||
1849 | int namelen; | 1849 | int namelen; |
1850 | 1850 | ||
1851 | ASSERT(!*vpp); | 1851 | ASSERT(!*vpp); |
1852 | vn_trace_entry(dir_vp, __FUNCTION__, (inst_t *)__return_address); | 1852 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
1853 | 1853 | ||
1854 | dm_di_mode = vap->va_mode; | 1854 | dm_di_mode = vap->va_mode; |
1855 | namelen = VNAMELEN(dentry); | 1855 | namelen = VNAMELEN(dentry); |
@@ -2326,7 +2326,7 @@ xfs_remove( | |||
2326 | uint resblks; | 2326 | uint resblks; |
2327 | int namelen; | 2327 | int namelen; |
2328 | 2328 | ||
2329 | vn_trace_entry(dir_vp, __FUNCTION__, (inst_t *)__return_address); | 2329 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
2330 | 2330 | ||
2331 | if (XFS_FORCED_SHUTDOWN(mp)) | 2331 | if (XFS_FORCED_SHUTDOWN(mp)) |
2332 | return XFS_ERROR(EIO); | 2332 | return XFS_ERROR(EIO); |
@@ -2369,7 +2369,7 @@ xfs_remove( | |||
2369 | 2369 | ||
2370 | dm_di_mode = ip->i_d.di_mode; | 2370 | dm_di_mode = ip->i_d.di_mode; |
2371 | 2371 | ||
2372 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 2372 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
2373 | 2373 | ||
2374 | ITRACE(ip); | 2374 | ITRACE(ip); |
2375 | 2375 | ||
@@ -2503,7 +2503,7 @@ xfs_remove( | |||
2503 | if (link_zero && xfs_inode_is_filestream(ip)) | 2503 | if (link_zero && xfs_inode_is_filestream(ip)) |
2504 | xfs_filestream_deassociate(ip); | 2504 | xfs_filestream_deassociate(ip); |
2505 | 2505 | ||
2506 | vn_trace_exit(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 2506 | vn_trace_exit(ip, __FUNCTION__, (inst_t *)__return_address); |
2507 | 2507 | ||
2508 | IRELE(ip); | 2508 | IRELE(ip); |
2509 | 2509 | ||
@@ -2567,8 +2567,8 @@ xfs_link( | |||
2567 | char *target_name = VNAME(dentry); | 2567 | char *target_name = VNAME(dentry); |
2568 | int target_namelen; | 2568 | int target_namelen; |
2569 | 2569 | ||
2570 | vn_trace_entry(target_dir_vp, __FUNCTION__, (inst_t *)__return_address); | 2570 | vn_trace_entry(tdp, __FUNCTION__, (inst_t *)__return_address); |
2571 | vn_trace_entry(src_vp, __FUNCTION__, (inst_t *)__return_address); | 2571 | vn_trace_entry(xfs_vtoi(src_vp), __FUNCTION__, (inst_t *)__return_address); |
2572 | 2572 | ||
2573 | target_namelen = VNAMELEN(dentry); | 2573 | target_namelen = VNAMELEN(dentry); |
2574 | ASSERT(!VN_ISDIR(src_vp)); | 2574 | ASSERT(!VN_ISDIR(src_vp)); |
@@ -2751,7 +2751,7 @@ xfs_mkdir( | |||
2751 | 2751 | ||
2752 | /* Return through std_return after this point. */ | 2752 | /* Return through std_return after this point. */ |
2753 | 2753 | ||
2754 | vn_trace_entry(dir_vp, __FUNCTION__, (inst_t *)__return_address); | 2754 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
2755 | 2755 | ||
2756 | mp = dp->i_mount; | 2756 | mp = dp->i_mount; |
2757 | udqp = gdqp = NULL; | 2757 | udqp = gdqp = NULL; |
@@ -2945,7 +2945,7 @@ xfs_rmdir( | |||
2945 | int last_cdp_link; | 2945 | int last_cdp_link; |
2946 | uint resblks; | 2946 | uint resblks; |
2947 | 2947 | ||
2948 | vn_trace_entry(dir_vp, __FUNCTION__, (inst_t *)__return_address); | 2948 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
2949 | 2949 | ||
2950 | if (XFS_FORCED_SHUTDOWN(mp)) | 2950 | if (XFS_FORCED_SHUTDOWN(mp)) |
2951 | return XFS_ERROR(EIO); | 2951 | return XFS_ERROR(EIO); |
@@ -3198,7 +3198,7 @@ xfs_symlink( | |||
3198 | ip = NULL; | 3198 | ip = NULL; |
3199 | tp = NULL; | 3199 | tp = NULL; |
3200 | 3200 | ||
3201 | vn_trace_entry(dir_vp, __FUNCTION__, (inst_t *)__return_address); | 3201 | vn_trace_entry(dp, __FUNCTION__, (inst_t *)__return_address); |
3202 | 3202 | ||
3203 | 3203 | ||
3204 | if (XFS_FORCED_SHUTDOWN(mp)) | 3204 | if (XFS_FORCED_SHUTDOWN(mp)) |
@@ -3490,7 +3490,7 @@ xfs_fid2( | |||
3490 | { | 3490 | { |
3491 | xfs_fid2_t *xfid = (xfs_fid2_t *)fidp; | 3491 | xfs_fid2_t *xfid = (xfs_fid2_t *)fidp; |
3492 | 3492 | ||
3493 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 3493 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
3494 | ASSERT(sizeof(fid_t) >= sizeof(xfs_fid2_t)); | 3494 | ASSERT(sizeof(fid_t) >= sizeof(xfs_fid2_t)); |
3495 | 3495 | ||
3496 | xfid->fid_len = sizeof(xfs_fid2_t) - sizeof(xfid->fid_len); | 3496 | xfid->fid_len = sizeof(xfs_fid2_t) - sizeof(xfid->fid_len); |
@@ -3673,7 +3673,7 @@ xfs_reclaim( | |||
3673 | { | 3673 | { |
3674 | bhv_vnode_t *vp = XFS_ITOV(ip); | 3674 | bhv_vnode_t *vp = XFS_ITOV(ip); |
3675 | 3675 | ||
3676 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 3676 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
3677 | 3677 | ||
3678 | ASSERT(!VN_MAPPED(vp)); | 3678 | ASSERT(!VN_MAPPED(vp)); |
3679 | 3679 | ||
@@ -3891,7 +3891,7 @@ xfs_alloc_file_space( | |||
3891 | int committed; | 3891 | int committed; |
3892 | int error; | 3892 | int error; |
3893 | 3893 | ||
3894 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 3894 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
3895 | 3895 | ||
3896 | if (XFS_FORCED_SHUTDOWN(mp)) | 3896 | if (XFS_FORCED_SHUTDOWN(mp)) |
3897 | return XFS_ERROR(EIO); | 3897 | return XFS_ERROR(EIO); |
@@ -4161,7 +4161,7 @@ xfs_free_file_space( | |||
4161 | vp = XFS_ITOV(ip); | 4161 | vp = XFS_ITOV(ip); |
4162 | mp = ip->i_mount; | 4162 | mp = ip->i_mount; |
4163 | 4163 | ||
4164 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); | 4164 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
4165 | 4165 | ||
4166 | if ((error = XFS_QM_DQATTACH(mp, ip, 0))) | 4166 | if ((error = XFS_QM_DQATTACH(mp, ip, 0))) |
4167 | return error; | 4167 | return error; |
@@ -4367,7 +4367,7 @@ xfs_change_file_space( | |||
4367 | xfs_trans_t *tp; | 4367 | xfs_trans_t *tp; |
4368 | bhv_vattr_t va; | 4368 | bhv_vattr_t va; |
4369 | 4369 | ||
4370 | vn_trace_entry(XFS_ITOV(ip), __FUNCTION__, (inst_t *)__return_address); | 4370 | vn_trace_entry(ip, __FUNCTION__, (inst_t *)__return_address); |
4371 | 4371 | ||
4372 | /* | 4372 | /* |
4373 | * must be a regular file and have write permission | 4373 | * must be a regular file and have write permission |