gfs2: gfs2_ail_empty_gl no log flush on error
authorBob Peterson <rpeterso@redhat.com>
Fri, 21 Apr 2023 19:07:10 +0000 (15:07 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 25 Apr 2023 09:07:16 +0000 (11:07 +0200)
commit644f6bf762fa903f64c59c2ec0f4d0d753527053
treeebc14844a4035fa9f949903e3f1473e42293ebf3
parentb97e583caa25abf95695cd06d7f9512b484c6c01
gfs2: gfs2_ail_empty_gl no log flush on error

Before this patch, function gfs2_ail_empty_gl called gfs2_log_flush even
in cases where it encountered an error. It should probably skip the log
flush and leave the file system in an inconsistent state, letting a
subsequent withdraw force the journal to be replayed to reestablish
metadata consistency.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c