diff options
author | Bob Peterson <rpeterso@redhat.com> | 2018-01-08 10:34:17 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-01-23 09:39:20 -0500 |
commit | 805c090750a315c5443c14e06304e19a01c697a0 (patch) | |
tree | 2cb72f782264f06b26392d043197b981179e3894 /fs/gfs2/trans.c | |
parent | c1696fb85d33194cf65c7ebfc82a75696299c3a3 (diff) |
GFS2: Log the reason for log flushes in every log header
This patch just adds the capability for GFS2 to track which function
called gfs2_log_flush. This should make it easier to diagnose
problems based on the sequence of events found in the journals.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/trans.c')
-rw-r--r-- | fs/gfs2/trans.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 7aec6d3434fa..c75cacaa349b 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -117,7 +117,8 @@ void gfs2_trans_end(struct gfs2_sbd *sdp) | |||
117 | up_read(&sdp->sd_log_flush_lock); | 117 | up_read(&sdp->sd_log_flush_lock); |
118 | 118 | ||
119 | if (sdp->sd_vfs->s_flags & SB_SYNCHRONOUS) | 119 | if (sdp->sd_vfs->s_flags & SB_SYNCHRONOUS) |
120 | gfs2_log_flush(sdp, NULL, GFS2_LOG_HEAD_FLUSH_NORMAL); | 120 | gfs2_log_flush(sdp, NULL, GFS2_LOG_HEAD_FLUSH_NORMAL | |
121 | GFS2_LFC_TRANS_END); | ||
121 | if (alloced) | 122 | if (alloced) |
122 | sb_end_intwrite(sdp->sd_vfs); | 123 | sb_end_intwrite(sdp->sd_vfs); |
123 | } | 124 | } |