aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/jbd2/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 4f302d279279..48b3cb8aeb2e 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -872,7 +872,8 @@ wait_for_iobuf:
872 if (err) 872 if (err)
873 __jbd2_journal_abort_hard(journal); 873 __jbd2_journal_abort_hard(journal);
874 } 874 }
875 err = journal_wait_on_commit_record(cbh); 875 if (!err && !is_journal_aborted(journal))
876 err = journal_wait_on_commit_record(cbh);
876 877
877 if (err) 878 if (err)
878 jbd2_journal_abort(journal, err); 879 jbd2_journal_abort(journal, err);