From 158eecb88ed3100bef01917913a26e9aad152417 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 14 Nov 2020 16:04:30 -0500 Subject: bcachefs: Assorted journal refactoring Improved the way we track various state by adding j->err_seq, which records the first journal sequence number that encountered an error being written, and j->last_empty_seq, which records the most recent journal entry that was completely empty. Also, use the low bits of the journal sequence number to index the corresponding journal_buf. Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/journal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/journal.h') diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h index 8931ff3627a8..7ad2bb576eb0 100644 --- a/fs/bcachefs/journal.h +++ b/fs/bcachefs/journal.h @@ -466,7 +466,7 @@ void bch2_journal_entry_res_resize(struct journal *, struct journal_entry_res *, unsigned); -void bch2_journal_flush_seq_async(struct journal *, u64, struct closure *); +int bch2_journal_flush_seq_async(struct journal *, u64, struct closure *); void bch2_journal_flush_async(struct journal *, struct closure *); int bch2_journal_flush_seq(struct journal *, u64); -- cgit v1.2.3