]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Assorted journal refactoring
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 14 Nov 2020 21:04:30 +0000 (16:04 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:47 +0000 (17:08 -0400)
commit158eecb88ed3100bef01917913a26e9aad152417
treebb4415aab11da01943240b2ab97c6e6b16cb59cb
parent1676a398d37bffa29824f132a29f2836282940f3
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 <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c
fs/bcachefs/journal.h
fs/bcachefs/journal_io.c
fs/bcachefs/journal_types.h