projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e7cfb3
)
bcachefs: Fix early init error path in journal code
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 17 Jun 2024 13:36:34 +0000
(09:36 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 19 Jun 2024 22:27:24 +0000
(18:27 -0400)
We shouln't be running the journal shutdown sequence if we never fully
initialized the journal.
Reported-by: syzbot+ffd2270f0bca3322ee00@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/journal.c
b/fs/bcachefs/journal.c
index
adec8e1
..
dac2f49
100644
(file)
--- a/
fs/bcachefs/journal.c
+++ b/
fs/bcachefs/journal.c
@@
-1167,6
+1167,9
@@
void bch2_dev_journal_stop(struct journal *j, struct bch_dev *ca)
void bch2_fs_journal_stop(struct journal *j)
{
+ if (!test_bit(JOURNAL_running, &j->flags))
+ return;
+
bch2_journal_reclaim_stop(j);
bch2_journal_flush_all_pins(j);