bcachefs: Assorted journal refactoring
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 23 Jul 2018 11:52:00 +0000 (07:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:08 +0000 (17:08 -0400)
commit9c859dc91b5a85bab4dcb72087528c6cfd7207b4
treedec16b4cf79414c55ef5b6e44f2c41cb9df6cacc
parent60476b14b4c4e7a733047374aa135fb16c6ab340
bcachefs: Assorted journal refactoring

Also improve error reporting - only return an error from
bch2_journal_flush_seq() if we had an error writing that entry (i.e. not
if there was an error with a newer entry).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c
fs/bcachefs/journal_io.c
fs/bcachefs/journal_types.h