Skip to content

Commit

Permalink
jbd2: don't start fast commit on aborted journal
Browse files Browse the repository at this point in the history
Fast commit should not be started if the journal is aborted.

Signed-off-by: Harshad Shirwadkar<[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
harshadjs authored and tytso committed Nov 7, 2020
1 parent 9b5f6c9 commit 87a144f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
*/
int jbd2_fc_begin_commit(journal_t *journal, tid_t tid)
{
if (unlikely(is_journal_aborted(journal)))
return -EIO;
/*
* Fast commits only allowed if at least one full commit has
* been processed.
Expand Down

0 comments on commit 87a144f

Please sign in to comment.