xfs: add log recovery tracepoint for head/tail

Torn write detection and tail overwrite detection can shift the log
head and tail respectively in the event of CRC mismatch or
corruption errors. Add a high-level log recovery tracepoint to dump
the final log head/tail and make those values easily attainable in
debug/diagnostic situations.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
Brian Foster
2017-08-08 18:21:53 -07:00
committed by Darrick J. Wong
parent a4c9b34d6a
commit e67d3d4246
2 changed files with 20 additions and 0 deletions

View File

@@ -5598,6 +5598,8 @@ xlog_do_recover(
xfs_buf_t *bp;
xfs_sb_t *sbp;
trace_xfs_log_recover(log, head_blk, tail_blk);
/*
* First replay the images in the log.
*/