Skip to content

Commit 4900312

Browse files
committed
gfs2: Additional information when gfs2_ail1_flush withdraws
Before this patch, if gfs2_ail1_flush gets an error from function gfs2_ail1_start_one (which comes indirectly from generic_writepages) the file system is withdrawn, but without any explanation why. This patch adds an error message if gfs2_ail1_flush gets an error from gfs2_ail1_start_one. Signed-off-by: Bob Peterson <[email protected]>
1 parent cc44457 commit 4900312

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/gfs2/log.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,11 @@ void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc)
172172
}
173173
spin_unlock(&sdp->sd_ail_lock);
174174
blk_finish_plug(&plug);
175-
if (ret)
175+
if (ret) {
176+
gfs2_lm(sdp, "gfs2_ail1_start_one (generic_writepages) "
177+
"returned: %d\n", ret);
176178
gfs2_withdraw(sdp);
179+
}
177180
trace_gfs2_ail_flush(sdp, wbc, 0);
178181
}
179182

0 commit comments

Comments
 (0)