From ed3adb375b704662bf36d62d5611f304e2b56c7e Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Tue, 20 Oct 2020 14:18:24 +0200 Subject: 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 --- fs/gfs2/glops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3