projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5f6c9
)
jbd2: don't start fast commit on aborted journal
author
Harshad Shirwadkar
<harshadshirwadkar@gmail.com>
Fri, 6 Nov 2020 03:59:10 +0000
(19:59 -0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 7 Nov 2020 04:01:06 +0000
(23:01 -0500)
Fast commit should not be started if the journal is aborted.
Signed-off-by: Harshad Shirwadkar<harshadshirwadkar@gmail.com>
Link:
https://lore.kernel.org/r/20201106035911.1942128-22-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
patch
|
blob
|
history
diff --git
a/fs/jbd2/journal.c
b/fs/jbd2/journal.c
index f7ebf6ef69af68e56032dde67dd7d0b6282c8db0..0c3d5e3b24b27b658b3c6ccb29f53988465247cb 100644
(file)
--- a/
fs/jbd2/journal.c
+++ b/
fs/jbd2/journal.c
@@
-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.