@@ -652,7 +652,7 @@ xfs_alloc_file_space(
if (xfs_is_always_cow_inode(ip))
return 0;
- trace_xfs_alloc_file_space(ip);
+ trace_xfs_alloc_file_space(ip, offset, len);
if (xfs_is_shutdown(mp))
return -EIO;
@@ -839,7 +839,7 @@ xfs_free_file_space(
xfs_fileoff_t endoffset_fsb;
int done = 0, error;
- trace_xfs_free_file_space(ip);
+ trace_xfs_free_file_space(ip, offset, len);
error = xfs_qm_dqattach(ip);
if (error)
@@ -987,7 +987,7 @@ xfs_collapse_file_space(
xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL);
- trace_xfs_collapse_file_space(ip);
+ trace_xfs_collapse_file_space(ip, offset, len);
error = xfs_free_file_space(ip, offset, len, ac);
if (error)
@@ -1056,7 +1056,7 @@ xfs_insert_file_space(
xfs_assert_ilocked(ip, XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL);
- trace_xfs_insert_file_space(ip);
+ trace_xfs_insert_file_space(ip, offset, len);
error = xfs_bmap_can_insert_extents(ip, stop_fsb, shift_fsb);
if (error)
@@ -1362,7 +1362,7 @@ xfs_falloc_zero_range(
loff_t new_size = 0;
int error;
- trace_xfs_zero_file_space(XFS_I(inode));
+ trace_xfs_zero_file_space(XFS_I(inode), offset, len);
error = xfs_falloc_newsize(file, mode, offset, len, &new_size);
if (error)
@@ -928,11 +928,6 @@ DEFINE_INODE_EVENT(xfs_getattr);
DEFINE_INODE_EVENT(xfs_setattr);
DEFINE_INODE_EVENT(xfs_readlink);
DEFINE_INODE_EVENT(xfs_inactive_symlink);
-DEFINE_INODE_EVENT(xfs_alloc_file_space);
-DEFINE_INODE_EVENT(xfs_free_file_space);
-DEFINE_INODE_EVENT(xfs_zero_file_space);
-DEFINE_INODE_EVENT(xfs_collapse_file_space);
-DEFINE_INODE_EVENT(xfs_insert_file_space);
DEFINE_INODE_EVENT(xfs_readdir);
#ifdef CONFIG_XFS_POSIX_ACL
DEFINE_INODE_EVENT(xfs_get_acl);
@@ -1732,6 +1727,11 @@ DEFINE_SIMPLE_IO_EVENT(xfs_end_io_direct_write_unwritten);
DEFINE_SIMPLE_IO_EVENT(xfs_end_io_direct_write_append);
DEFINE_SIMPLE_IO_EVENT(xfs_file_splice_read);
DEFINE_SIMPLE_IO_EVENT(xfs_zoned_map_blocks);
+DEFINE_SIMPLE_IO_EVENT(xfs_alloc_file_space);
+DEFINE_SIMPLE_IO_EVENT(xfs_free_file_space);
+DEFINE_SIMPLE_IO_EVENT(xfs_zero_file_space);
+DEFINE_SIMPLE_IO_EVENT(xfs_collapse_file_space);
+DEFINE_SIMPLE_IO_EVENT(xfs_insert_file_space);
DECLARE_EVENT_CLASS(xfs_itrunc_class,
TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size),