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:

committed by
Darrick J. Wong

parent
a4c9b34d6a
commit
e67d3d4246
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user