gfs2: enhance log_blocks trace point to show log blocks free
authorBob Peterson <rpeterso@redhat.com>
Thu, 20 Aug 2020 13:59:28 +0000 (08:59 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 15 Oct 2020 12:29:03 +0000 (14:29 +0200)
commit97c5e43d51a44bffdc0eb3c4b40c8d2d4cbe1a73
tree94d5c7b369cf527e514b431d48e3a0b080b32f31
parent77650bdbd293ac56807b8a3f24ca8152035eb2e3
gfs2: enhance log_blocks trace point to show log blocks free

This patch adds some code to enhance the log_blocks trace point. It
reports the number of free log blocks. This makes the trace point much
more useful, especially for debugging performance problems when we can
tell when the journal gets full and needs to wait for flushes, etc.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/trace_gfs2.h