diff options
author | 2019-04-04 21:53:12 -0400 | |
---|---|---|
committer | 2023-10-22 17:08:20 -0400 | |
commit | 1dd7f9d98de0740b42f1ac3f0b1d8af9c76801de (patch) | |
tree | bcc22ad8766da57180ccc67812966aab79434512 /fs/bcachefs/journal.h | |
parent | bcachefs: don't lose errors from iterators that have been freed (diff) | |
download | linux-1dd7f9d98de0740b42f1ac3f0b1d8af9c76801de.tar.gz linux-1dd7f9d98de0740b42f1ac3f0b1d8af9c76801de.tar.bz2 linux-1dd7f9d98de0740b42f1ac3f0b1d8af9c76801de.zip |
bcachefs: Rewrite journal_seq_blacklist machinery
Now, we store blacklisted journal sequence numbers in the superblock,
not the journal: this helps to greatly simplify the code, and more
importantly it's now implemented in a way that doesn't require all btree
nodes to be visited before starting the journal - instead, we
unconditionally blacklist the next 4 journal sequence numbers after an
unclean shutdown.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r-- | fs/bcachefs/journal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h index 809cf25f5a03..3447b4ad462d 100644 --- a/fs/bcachefs/journal.h +++ b/fs/bcachefs/journal.h @@ -472,8 +472,10 @@ int bch2_set_nr_journal_buckets(struct bch_fs *, struct bch_dev *, int bch2_dev_journal_alloc(struct bch_dev *); void bch2_dev_journal_stop(struct journal *, struct bch_dev *); + void bch2_fs_journal_stop(struct journal *); -void bch2_fs_journal_start(struct journal *); +int bch2_fs_journal_start(struct journal *, u64, struct list_head *); + void bch2_dev_journal_exit(struct bch_dev *); int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *); void bch2_fs_journal_exit(struct journal *); |