summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trace.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-03 11:26:33 +1000
committerDave Chinner <david@fromorbit.com>2016-08-03 11:26:33 +1000
commitba9e780246a15a35f8ebe5b60f4a11bb58e85bda (patch)
tree8216f1d66b69c2a34643d5604d79dc58278e2943 /fs/xfs/xfs_trace.h
parentdc42375d5f55d2c48d363957621d7aa913bdc5a1 (diff)
downloadlinux-stable-ba9e780246a15a35f8ebe5b60f4a11bb58e85bda.tar.gz
linux-stable-ba9e780246a15a35f8ebe5b60f4a11bb58e85bda.tar.bz2
linux-stable-ba9e780246a15a35f8ebe5b60f4a11bb58e85bda.zip
xfs: add tracepoints and error injection for deferred extent freeing
Add a couple of tracepoints for the deferred extent free operation and a site for injecting errors while finishing the operation. This makes it easier to debug deferred ops and test log redo. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r--fs/xfs/xfs_trace.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h
index a45b030d4592..939caf5f5a45 100644
--- a/fs/xfs/xfs_trace.h
+++ b/fs/xfs/xfs_trace.h
@@ -2417,9 +2417,12 @@ DEFINE_DEFER_PENDING_EVENT(xfs_defer_pending_cancel);
DEFINE_DEFER_PENDING_EVENT(xfs_defer_pending_finish);
DEFINE_DEFER_PENDING_EVENT(xfs_defer_pending_abort);
-DEFINE_PHYS_EXTENT_DEFERRED_EVENT(xfs_defer_phys_extent);
DEFINE_MAP_EXTENT_DEFERRED_EVENT(xfs_defer_map_extent);
+#define DEFINE_BMAP_FREE_DEFERRED_EVENT DEFINE_PHYS_EXTENT_DEFERRED_EVENT
+DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_defer);
+DEFINE_BMAP_FREE_DEFERRED_EVENT(xfs_bmap_free_deferred);
+
#endif /* _TRACE_XFS_H */
#undef TRACE_INCLUDE_PATH