aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_acl.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_file.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl.c4
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl32.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c7
-rw-r--r--fs/xfs/linux-2.6/xfs_trace.h115
-rw-r--r--fs/xfs/xfs_dir2.c2
-rw-r--r--fs/xfs/xfs_rename.c3
-rw-r--r--fs/xfs/xfs_vnodeops.c24
11 files changed, 113 insertions, 52 deletions
diff --git a/fs/xfs/linux-2.6/xfs_acl.c b/fs/xfs/linux-2.6/xfs_acl.c
index 9f769b5b38fc..b2771862fd3d 100644
--- a/fs/xfs/linux-2.6/xfs_acl.c
+++ b/fs/xfs/linux-2.6/xfs_acl.c
@@ -225,7 +225,7 @@ xfs_check_acl(struct inode *inode, int mask)
225 struct posix_acl *acl; 225 struct posix_acl *acl;
226 int error = -EAGAIN; 226 int error = -EAGAIN;
227 227
228 xfs_itrace_entry(ip); 228 trace_xfs_check_acl(ip);
229 229
230 /* 230 /*
231 * If there is no attribute fork no ACL exists on this inode and 231 * If there is no attribute fork no ACL exists on this inode and
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 88ce1c6efff0..ed9c3db376c3 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1513,7 +1513,7 @@ xfs_vm_bmap(
1513 struct inode *inode = (struct inode *)mapping->host; 1513 struct inode *inode = (struct inode *)mapping->host;
1514 struct xfs_inode *ip = XFS_I(inode); 1514 struct xfs_inode *ip = XFS_I(inode);
1515 1515
1516 xfs_itrace_entry(XFS_I(inode)); 1516 trace_xfs_vm_bmap(XFS_I(inode));
1517 xfs_ilock(ip, XFS_IOLOCK_SHARED); 1517 xfs_ilock(ip, XFS_IOLOCK_SHARED);
1518 xfs_flush_pages(ip, (xfs_off_t)0, -1, 0, FI_REMAPF); 1518 xfs_flush_pages(ip, (xfs_off_t)0, -1, 0, FI_REMAPF);
1519 xfs_iunlock(ip, XFS_IOLOCK_SHARED); 1519 xfs_iunlock(ip, XFS_IOLOCK_SHARED);
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c
index 22edad7a0bec..3447555e9f76 100644
--- a/fs/xfs/linux-2.6/xfs_file.c
+++ b/fs/xfs/linux-2.6/xfs_file.c
@@ -100,7 +100,7 @@ xfs_file_fsync(
100 int error = 0; 100 int error = 0;
101 int log_flushed = 0; 101 int log_flushed = 0;
102 102
103 xfs_itrace_entry(ip); 103 trace_xfs_file_fsync(ip);
104 104
105 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) 105 if (XFS_FORCED_SHUTDOWN(ip->i_mount))
106 return -XFS_ERROR(EIO); 106 return -XFS_ERROR(EIO);
diff --git a/fs/xfs/linux-2.6/xfs_ioctl.c b/fs/xfs/linux-2.6/xfs_ioctl.c
index a12dddad126e..237f5ffb2ee8 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl.c
@@ -899,7 +899,7 @@ xfs_ioctl_setattr(
899 struct xfs_dquot *olddquot = NULL; 899 struct xfs_dquot *olddquot = NULL;
900 int code; 900 int code;
901 901
902 xfs_itrace_entry(ip); 902 trace_xfs_ioctl_setattr(ip);
903 903
904 if (mp->m_flags & XFS_MOUNT_RDONLY) 904 if (mp->m_flags & XFS_MOUNT_RDONLY)
905 return XFS_ERROR(EROFS); 905 return XFS_ERROR(EROFS);
@@ -1282,7 +1282,7 @@ xfs_file_ioctl(
1282 if (filp->f_mode & FMODE_NOCMTIME) 1282 if (filp->f_mode & FMODE_NOCMTIME)
1283 ioflags |= IO_INVIS; 1283 ioflags |= IO_INVIS;
1284 1284
1285 xfs_itrace_entry(ip); 1285 trace_xfs_file_ioctl(ip);
1286 1286
1287 switch (cmd) { 1287 switch (cmd) {
1288 case XFS_IOC_ALLOCSP: 1288 case XFS_IOC_ALLOCSP:
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c
index 6cd1225608ac..6c83f7f62dc9 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl32.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl32.c
@@ -540,7 +540,7 @@ xfs_file_compat_ioctl(
540 if (filp->f_mode & FMODE_NOCMTIME) 540 if (filp->f_mode & FMODE_NOCMTIME)
541 ioflags |= IO_INVIS; 541 ioflags |= IO_INVIS;
542 542
543 xfs_itrace_entry(ip); 543 trace_xfs_file_compat_ioctl(ip);
544 544
545 switch (cmd) { 545 switch (cmd) {
546 /* No size or alignment issues on any arch */ 546 /* No size or alignment issues on any arch */
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 4393de6b0c07..536b81e63a3d 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -488,7 +488,7 @@ xfs_vn_getattr(
488 struct xfs_inode *ip = XFS_I(inode); 488 struct xfs_inode *ip = XFS_I(inode);
489 struct xfs_mount *mp = ip->i_mount; 489 struct xfs_mount *mp = ip->i_mount;
490 490
491 xfs_itrace_entry(ip); 491 trace_xfs_getattr(ip);
492 492
493 if (XFS_FORCED_SHUTDOWN(mp)) 493 if (XFS_FORCED_SHUTDOWN(mp))
494 return XFS_ERROR(EIO); 494 return XFS_ERROR(EIO);
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);
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h
index 9efe368d38c7..24e5580bf3e7 100644
--- a/fs/xfs/linux-2.6/xfs_trace.h
+++ b/fs/xfs/linux-2.6/xfs_trace.h
@@ -539,7 +539,7 @@ DEFINE_LOCK_EVENT(xfs_ilock_nowait);
539DEFINE_LOCK_EVENT(xfs_ilock_demote); 539DEFINE_LOCK_EVENT(xfs_ilock_demote);
540DEFINE_LOCK_EVENT(xfs_iunlock); 540DEFINE_LOCK_EVENT(xfs_iunlock);
541 541
542DECLARE_EVENT_CLASS(xfs_iget_class, 542DECLARE_EVENT_CLASS(xfs_inode_class,
543 TP_PROTO(struct xfs_inode *ip), 543 TP_PROTO(struct xfs_inode *ip),
544 TP_ARGS(ip), 544 TP_ARGS(ip),
545 TP_STRUCT__entry( 545 TP_STRUCT__entry(
@@ -555,17 +555,36 @@ DECLARE_EVENT_CLASS(xfs_iget_class,
555 __entry->ino) 555 __entry->ino)
556) 556)
557 557
558#define DEFINE_IGET_EVENT(name) \ 558#define DEFINE_INODE_EVENT(name) \
559DEFINE_EVENT(xfs_iget_class, name, \ 559DEFINE_EVENT(xfs_inode_class, name, \
560 TP_PROTO(struct xfs_inode *ip), \ 560 TP_PROTO(struct xfs_inode *ip), \
561 TP_ARGS(ip)) 561 TP_ARGS(ip))
562DEFINE_IGET_EVENT(xfs_iget_skip); 562DEFINE_INODE_EVENT(xfs_iget_skip);
563DEFINE_IGET_EVENT(xfs_iget_reclaim); 563DEFINE_INODE_EVENT(xfs_iget_reclaim);
564DEFINE_IGET_EVENT(xfs_iget_reclaim_fail); 564DEFINE_INODE_EVENT(xfs_iget_reclaim_fail);
565DEFINE_IGET_EVENT(xfs_iget_hit); 565DEFINE_INODE_EVENT(xfs_iget_hit);
566DEFINE_IGET_EVENT(xfs_iget_miss); 566DEFINE_INODE_EVENT(xfs_iget_miss);
567 567
568DECLARE_EVENT_CLASS(xfs_inode_class, 568DEFINE_INODE_EVENT(xfs_getattr);
569DEFINE_INODE_EVENT(xfs_setattr);
570DEFINE_INODE_EVENT(xfs_readlink);
571DEFINE_INODE_EVENT(xfs_alloc_file_space);
572DEFINE_INODE_EVENT(xfs_free_file_space);
573DEFINE_INODE_EVENT(xfs_readdir);
574DEFINE_INODE_EVENT(xfs_check_acl);
575DEFINE_INODE_EVENT(xfs_vm_bmap);
576DEFINE_INODE_EVENT(xfs_file_ioctl);
577DEFINE_INODE_EVENT(xfs_file_compat_ioctl);
578DEFINE_INODE_EVENT(xfs_ioctl_setattr);
579DEFINE_INODE_EVENT(xfs_file_fsync);
580DEFINE_INODE_EVENT(xfs_destroy_inode);
581DEFINE_INODE_EVENT(xfs_write_inode);
582DEFINE_INODE_EVENT(xfs_clear_inode);
583
584DEFINE_INODE_EVENT(xfs_dquot_dqalloc);
585DEFINE_INODE_EVENT(xfs_dquot_dqdetach);
586
587DECLARE_EVENT_CLASS(xfs_iref_class,
569 TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip), 588 TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip),
570 TP_ARGS(ip, caller_ip), 589 TP_ARGS(ip, caller_ip),
571 TP_STRUCT__entry( 590 TP_STRUCT__entry(
@@ -590,20 +609,71 @@ DECLARE_EVENT_CLASS(xfs_inode_class,
590 (char *)__entry->caller_ip) 609 (char *)__entry->caller_ip)
591) 610)
592 611
593#define DEFINE_INODE_EVENT(name) \ 612#define DEFINE_IREF_EVENT(name) \
594DEFINE_EVENT(xfs_inode_class, name, \ 613DEFINE_EVENT(xfs_iref_class, name, \
595 TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip), \ 614 TP_PROTO(struct xfs_inode *ip, unsigned long caller_ip), \
596 TP_ARGS(ip, caller_ip)) 615 TP_ARGS(ip, caller_ip))
597DEFINE_INODE_EVENT(xfs_ihold); 616DEFINE_IREF_EVENT(xfs_ihold);
598DEFINE_INODE_EVENT(xfs_irele); 617DEFINE_IREF_EVENT(xfs_irele);
599DEFINE_INODE_EVENT(xfs_inode_pin); 618DEFINE_IREF_EVENT(xfs_inode_pin);
600DEFINE_INODE_EVENT(xfs_inode_unpin); 619DEFINE_IREF_EVENT(xfs_inode_unpin);
601DEFINE_INODE_EVENT(xfs_inode_unpin_nowait); 620DEFINE_IREF_EVENT(xfs_inode_unpin_nowait);
621
622DECLARE_EVENT_CLASS(xfs_namespace_class,
623 TP_PROTO(struct xfs_inode *dp, struct xfs_name *name),
624 TP_ARGS(dp, name),
625 TP_STRUCT__entry(
626 __field(dev_t, dev)
627 __field(xfs_ino_t, dp_ino)
628 __dynamic_array(char, name, name->len)
629 ),
630 TP_fast_assign(
631 __entry->dev = VFS_I(dp)->i_sb->s_dev;
632 __entry->dp_ino = dp->i_ino;
633 memcpy(__get_str(name), name->name, name->len);
634 ),
635 TP_printk("dev %d:%d dp ino 0x%llx name %s",
636 MAJOR(__entry->dev), MINOR(__entry->dev),
637 __entry->dp_ino,
638 __get_str(name))
639)
602 640
603/* the old xfs_itrace_entry tracer - to be replaced by s.th. in the VFS */ 641#define DEFINE_NAMESPACE_EVENT(name) \
604DEFINE_INODE_EVENT(xfs_inode); 642DEFINE_EVENT(xfs_namespace_class, name, \
605#define xfs_itrace_entry(ip) \ 643 TP_PROTO(struct xfs_inode *dp, struct xfs_name *name), \
606 trace_xfs_inode(ip, _THIS_IP_) 644 TP_ARGS(dp, name))
645DEFINE_NAMESPACE_EVENT(xfs_remove);
646DEFINE_NAMESPACE_EVENT(xfs_link);
647DEFINE_NAMESPACE_EVENT(xfs_lookup);
648DEFINE_NAMESPACE_EVENT(xfs_create);
649DEFINE_NAMESPACE_EVENT(xfs_symlink);
650
651TRACE_EVENT(xfs_rename,
652 TP_PROTO(struct xfs_inode *src_dp, struct xfs_inode *target_dp,
653 struct xfs_name *src_name, struct xfs_name *target_name),
654 TP_ARGS(src_dp, target_dp, src_name, target_name),
655 TP_STRUCT__entry(
656 __field(dev_t, dev)
657 __field(xfs_ino_t, src_dp_ino)
658 __field(xfs_ino_t, target_dp_ino)
659 __dynamic_array(char, src_name, src_name->len)
660 __dynamic_array(char, target_name, target_name->len)
661 ),
662 TP_fast_assign(
663 __entry->dev = VFS_I(src_dp)->i_sb->s_dev;
664 __entry->src_dp_ino = src_dp->i_ino;
665 __entry->target_dp_ino = target_dp->i_ino;
666 memcpy(__get_str(src_name), src_name->name, src_name->len);
667 memcpy(__get_str(target_name), target_name->name, target_name->len);
668 ),
669 TP_printk("dev %d:%d src dp ino 0x%llx target dp ino 0x%llx"
670 " src name %s target name %s",
671 MAJOR(__entry->dev), MINOR(__entry->dev),
672 __entry->src_dp_ino,
673 __entry->target_dp_ino,
674 __get_str(src_name),
675 __get_str(target_name))
676)
607 677
608DECLARE_EVENT_CLASS(xfs_dquot_class, 678DECLARE_EVENT_CLASS(xfs_dquot_class,
609 TP_PROTO(struct xfs_dquot *dqp), 679 TP_PROTO(struct xfs_dquot *dqp),
@@ -683,9 +753,6 @@ DEFINE_DQUOT_EVENT(xfs_dqrele);
683DEFINE_DQUOT_EVENT(xfs_dqflush); 753DEFINE_DQUOT_EVENT(xfs_dqflush);
684DEFINE_DQUOT_EVENT(xfs_dqflush_force); 754DEFINE_DQUOT_EVENT(xfs_dqflush_force);
685DEFINE_DQUOT_EVENT(xfs_dqflush_done); 755DEFINE_DQUOT_EVENT(xfs_dqflush_done);
686/* not really iget events, but we re-use the format */
687DEFINE_IGET_EVENT(xfs_dquot_dqalloc);
688DEFINE_IGET_EVENT(xfs_dquot_dqdetach);
689 756
690DECLARE_EVENT_CLASS(xfs_loggrant_class, 757DECLARE_EVENT_CLASS(xfs_loggrant_class,
691 TP_PROTO(struct log *log, struct xlog_ticket *tic), 758 TP_PROTO(struct log *log, struct xlog_ticket *tic),
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c
index b53960a5f41e..a1321bc7f192 100644
--- a/fs/xfs/xfs_dir2.c
+++ b/fs/xfs/xfs_dir2.c
@@ -380,7 +380,7 @@ xfs_readdir(
380 int rval; /* return value */ 380 int rval; /* return value */
381 int v; /* type-checking value */ 381 int v; /* type-checking value */
382 382
383 xfs_itrace_entry(dp); 383 trace_xfs_readdir(dp);
384 384
385 if (XFS_FORCED_SHUTDOWN(dp->i_mount)) 385 if (XFS_FORCED_SHUTDOWN(dp->i_mount))
386 return XFS_ERROR(EIO); 386 return XFS_ERROR(EIO);
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c
index 778c87a8ebfc..8fca957200df 100644
--- a/fs/xfs/xfs_rename.c
+++ b/fs/xfs/xfs_rename.c
@@ -113,8 +113,7 @@ xfs_rename(
113 int spaceres; 113 int spaceres;
114 int num_inodes; 114 int num_inodes;
115 115
116 xfs_itrace_entry(src_dp); 116 trace_xfs_rename(src_dp, target_dp, src_name, target_name);
117 xfs_itrace_entry(target_dp);
118 117
119 new_parent = (src_dp != target_dp); 118 new_parent = (src_dp != target_dp);
120 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR); 119 src_is_directory = ((src_ip->i_d.di_mode & S_IFMT) == S_IFDIR);
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