summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2015-10-12 05:02:08 (GMT)
committerDave Chinner <david@fromorbit.com>2015-10-12 05:02:08 (GMT)
commit0a50f162af6ddc2db02c9edc5bbb823c336100a4 (patch)
treee4d40edf5a5dd7386e7f736b9300fa216565a502 /fs/xfs/xfs_file.c
parent3136e8bb3054d3bb68942f8f1ee6c26c05f798b0 (diff)
downloadlinux-0a50f162af6ddc2db02c9edc5bbb823c336100a4.tar.xz
xfs: add an xfs_zero_eof() tracepoint
Add a tracepoint in xfs_zero_eof() to facilitate tracking and debugging EOF zeroing events. This has proven useful in the context of other direct I/O tracepoints to ensure EOF zeroing occurs within appropriate file ranges. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 347b3e0..541dcfb 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -482,6 +482,8 @@ xfs_zero_eof(
ASSERT(xfs_isilocked(ip, XFS_IOLOCK_EXCL));
ASSERT(offset > isize);
+ trace_xfs_zero_eof(ip, isize, offset - isize);
+
/*
* First handle zeroing the block on which isize resides.
*