diff options
author | Brian Foster <bfoster@redhat.com> | 2015-08-19 09:58:48 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-08-19 09:58:48 +1000 |
commit | 78d57e4593bf700e1a4447e3a7769da8dd0e0844 (patch) | |
tree | 0551843901cf71b4afc5a2767ea5281796023283 /fs/xfs/xfs_log_recover.c | |
parent | f0b2efad16e78623b5a156f6e4e9166907b83155 (diff) | |
download | linux-78d57e4593bf700e1a4447e3a7769da8dd0e0844.tar.bz2 |
xfs: icreate log item recovery and cancellation tracepoints
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>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index fd1ae47de511..0c6641b39e2a 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -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; |