summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2020-10-20 14:18:24 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2020-10-20 23:16:22 +0200
commited3adb375b704662bf36d62d5611f304e2b56c7e (patch)
tree7305fb7ea0ac145ebef96fd8a0a4c77a0dca9daf /fs
parent23cfb0c3d845ee0cb45732cd0ac2460115cb7c9c (diff)
gfs2: Ignore subsequent errors after withdraw in rgrp_go_sync
Once a withdraw has occurred, ignore errors that are the consequence of the withdraw. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/glops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index b8cd1da7499d..aa3f5236befb 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -191,7 +191,7 @@ static int rgrp_go_sync(struct gfs2_glock *gl)
GFS2_LFC_RGRP_GO_SYNC);
filemap_fdatawrite_range(mapping, start, end);
error = filemap_fdatawait_range(mapping, start, end);
- WARN_ON_ONCE(error);
+ WARN_ON_ONCE(error && !gfs2_withdrawn(sdp));
mapping_set_error(mapping, error);
if (!error)
error = gfs2_ail_empty_gl(gl);