mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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 <rpeterso@redhat.com>
This commit is contained in:
parent
cc44457f16
commit
490031281d
1 changed files with 4 additions and 1 deletions
|
@ -172,8 +172,11 @@ void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc)
|
|||
}
|
||||
spin_unlock(&sdp->sd_ail_lock);
|
||||
blk_finish_plug(&plug);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
gfs2_lm(sdp, "gfs2_ail1_start_one (generic_writepages) "
|
||||
"returned: %d\n", ret);
|
||||
gfs2_withdraw(sdp);
|
||||
}
|
||||
trace_gfs2_ail_flush(sdp, wbc, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue