xfs: add log recovery tracepoint for head/tail
authorBrian Foster <bfoster@redhat.com>
Sun, 17 Sep 2017 21:06:55 +0000 (14:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:20:00 +0000 (08:20 +0200)
commit6b6505d90b77f98b0ce08a8332f03cb62f97c78f
tree65377cc0656fe298f993a49ebf54565955bbc583
parent7549e7c01fb0220e47515ad3ee52f46e2742f178
xfs: add log recovery tracepoint for head/tail

commit e67d3d4246e5fbb0c7c700426d11241ca9c6f473 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trace.h