aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index ad599ccc416b..9865e1136017 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -68,7 +68,7 @@ xfs_setattr(
68 struct xfs_dquot *udqp, *gdqp, *olddquot1, *olddquot2; 68 struct xfs_dquot *udqp, *gdqp, *olddquot1, *olddquot2;
69 int need_iolock = 1; 69 int need_iolock = 1;
70 70
71 xfs_itrace_entry(ip); 71 trace_xfs_setattr(ip);
72 72
73 if (mp->m_flags & XFS_MOUNT_RDONLY) 73 if (mp->m_flags & XFS_MOUNT_RDONLY)
74 return XFS_ERROR(EROFS); 74 return XFS_ERROR(EROFS);
@@ -533,7 +533,7 @@ xfs_readlink(
533 int pathlen; 533 int pathlen;
534 int error = 0; 534 int error = 0;
535 535
536 xfs_itrace_entry(ip); 536 trace_xfs_readlink(ip);
537 537
538 if (XFS_FORCED_SHUTDOWN(mp)) 538 if (XFS_FORCED_SHUTDOWN(mp))
539 return XFS_ERROR(EIO); 539 return XFS_ERROR(EIO);
@@ -1005,8 +1005,6 @@ xfs_inactive(
1005 int error; 1005 int error;
1006 int truncate; 1006 int truncate;
1007 1007
1008 xfs_itrace_entry(ip);
1009
1010 /* 1008 /*
1011 * If the inode is already free, then there can be nothing 1009 * If the inode is already free, then there can be nothing
1012 * to clean up here. 1010 * to clean up here.
@@ -1221,7 +1219,7 @@ xfs_lookup(
1221 int error; 1219 int error;
1222 uint lock_mode; 1220 uint lock_mode;
1223 1221
1224 xfs_itrace_entry(dp); 1222 trace_xfs_lookup(dp, name);
1225 1223
1226 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) 1224 if (XFS_FORCED_SHUTDOWN(dp->i_mount))
1227 return XFS_ERROR(EIO); 1225 return XFS_ERROR(EIO);
@@ -1273,7 +1271,7 @@ xfs_create(
1273 uint log_res; 1271 uint log_res;
1274 uint log_count; 1272 uint log_count;
1275 1273
1276 xfs_itrace_entry(dp); 1274 trace_xfs_create(dp, name);
1277 1275
1278 if (XFS_FORCED_SHUTDOWN(mp)) 1276 if (XFS_FORCED_SHUTDOWN(mp))
1279 return XFS_ERROR(EIO); 1277 return XFS_ERROR(EIO);
@@ -1670,8 +1668,7 @@ xfs_remove(
1670 uint resblks; 1668 uint resblks;
1671 uint log_count; 1669 uint log_count;
1672 1670
1673 xfs_itrace_entry(dp); 1671 trace_xfs_remove(dp, name);
1674 xfs_itrace_entry(ip);
1675 1672
1676 if (XFS_FORCED_SHUTDOWN(mp)) 1673 if (XFS_FORCED_SHUTDOWN(mp))
1677 return XFS_ERROR(EIO); 1674 return XFS_ERROR(EIO);
@@ -1832,8 +1829,7 @@ xfs_link(
1832 int committed; 1829 int committed;
1833 int resblks; 1830 int resblks;
1834 1831
1835 xfs_itrace_entry(tdp); 1832 trace_xfs_link(tdp, target_name);
1836 xfs_itrace_entry(sip);
1837 1833
1838 ASSERT(!S_ISDIR(sip->i_d.di_mode)); 1834 ASSERT(!S_ISDIR(sip->i_d.di_mode));
1839 1835
@@ -1966,7 +1962,7 @@ xfs_symlink(
1966 ip = NULL; 1962 ip = NULL;
1967 tp = NULL; 1963 tp = NULL;
1968 1964
1969 xfs_itrace_entry(dp); 1965 trace_xfs_symlink(dp, link_name);
1970 1966
1971 if (XFS_FORCED_SHUTDOWN(mp)) 1967 if (XFS_FORCED_SHUTDOWN(mp))
1972 return XFS_ERROR(EIO); 1968 return XFS_ERROR(EIO);
@@ -2256,7 +2252,7 @@ xfs_alloc_file_space(
2256 int committed; 2252 int committed;
2257 int error; 2253 int error;
2258 2254
2259 xfs_itrace_entry(ip); 2255 trace_xfs_alloc_file_space(ip);
2260 2256
2261 if (XFS_FORCED_SHUTDOWN(mp)) 2257 if (XFS_FORCED_SHUTDOWN(mp))
2262 return XFS_ERROR(EIO); 2258 return XFS_ERROR(EIO);
@@ -2517,7 +2513,7 @@ xfs_free_file_space(
2517 2513
2518 mp = ip->i_mount; 2514 mp = ip->i_mount;
2519 2515
2520 xfs_itrace_entry(ip); 2516 trace_xfs_free_file_space(ip);
2521 2517
2522 error = xfs_qm_dqattach(ip, 0); 2518 error = xfs_qm_dqattach(ip, 0);
2523 if (error) 2519 if (error)
@@ -2707,8 +2703,6 @@ xfs_change_file_space(
2707 xfs_trans_t *tp; 2703 xfs_trans_t *tp;
2708 struct iattr iattr; 2704 struct iattr iattr;
2709 2705
2710 xfs_itrace_entry(ip);
2711
2712 if (!S_ISREG(ip->i_d.di_mode)) 2706 if (!S_ISREG(ip->i_d.di_mode))
2713 return XFS_ERROR(EINVAL); 2707 return XFS_ERROR(EINVAL);
2714 2708