VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Bob Peterson <rpeterso@redhat.com> 2021-03-12 08:47:47 -0500 committer: Andreas Gruenbacher <agruenba@redhat.com> 2021-03-12 15:52:48 +0100 commit: 0efc4976e3da40b09c592b21f722022d8f12a16b parent: d5bf630f355d8c532bef2347cf90e8ae60a5f1bd
Commit Summary:
gfs2: bypass log flush if the journal is not live
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 760af666576c..6410281546f9 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -1036,7 +1036,7 @@ repeat:
 	 * Do this check while holding the log_flush_lock to prevent new
 	 * buffers from being added to the ail via gfs2_pin()
 	 */
-	if (gfs2_withdrawn(sdp))
+	if (gfs2_withdrawn(sdp) || !test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags))
 		goto out;
 
 	/* Log might have been flushed while we waited for the flush lock */