summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-03-06 10:15:03 -0600
committerBob Peterson <rpeterso@redhat.com>2020-03-06 10:15:03 -0600
commit490031281d5a33fbdab59e98e165c2cd30fc841b (patch)
treea861998adec451ae116f9e27fde5789f1533a521 /fs/gfs2/log.c
parentcc44457f16296809e40aae31415cd081a8352433 (diff)
downloadlinux-490031281d5a33fbdab59e98e165c2cd30fc841b.tar.bz2
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>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 67465a34954e..87f3e892be3e 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -172,8 +172,11 @@ restart:
}
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);
}