diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-21 05:17:15 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-09 00:29:18 +0300 |
commit | 497c982f057d3a20af4df313d997e81ca903ce4e (patch) | |
tree | d07fe9062c62d3c82036d99c86d4298e0d6c7483 /fs/bcachefs/btree_update.c | |
parent | 00589cadb1fb12548e096a29b1b9c0ccb313f2fa (diff) | |
download | linux-497c982f057d3a20af4df313d997e81ca903ce4e.tar.xz |
bcachefs: New assertion for writing to the journal after shutdown
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update.c')
-rw-r--r-- | fs/bcachefs/btree_update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_update.c b/fs/bcachefs/btree_update.c index 8e47e260eba5..c46ee4c813ae 100644 --- a/fs/bcachefs/btree_update.c +++ b/fs/bcachefs/btree_update.c @@ -852,7 +852,7 @@ __bch2_fs_log_msg(struct bch_fs *c, unsigned commit_flags, const char *fmt, if (ret) goto err; - if (!test_bit(JOURNAL_STARTED, &c->journal.flags)) { + if (!test_bit(JOURNAL_RUNNING, &c->journal.flags)) { ret = darray_make_room(&c->journal.early_journal_entries, jset_u64s(u64s)); if (ret) goto err; |