xfs: icreate log item recovery and cancellation tracepoints
authorBrian Foster <bfoster@redhat.com>
Tue, 18 Aug 2015 23:58:48 +0000 (09:58 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Aug 2015 23:58:48 +0000 (09:58 +1000)
Various log items have recovery tracepoints to identify whether a
particular log item is recovered or cancelled. Add the equivalent
tracepoints for the icreate transaction.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trace.h

index fd1ae47..0c6641b 100644 (file)
@@ -3100,9 +3100,12 @@ xlog_recover_do_icreate_pass2(
         * done easily.
         */
        if (xlog_check_buffer_cancelled(log,
-                       XFS_AGB_TO_DADDR(mp, agno, agbno), length, 0))
+                       XFS_AGB_TO_DADDR(mp, agno, agbno), length, 0)) {
+               trace_xfs_log_recover_icreate_cancel(log, icl);
                return 0;
+       }
 
+       trace_xfs_log_recover_icreate_recover(log, icl);
        xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, length,
                              be32_to_cpu(icl->icl_gen));
        return 0;
Simple merge