bcachefs: Fix a bug with the journal_seq_blacklist mechanism
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 5 Aug 2020 03:10:08 +0000 (23:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:43 +0000 (17:08 -0400)
commit9f115ce9e9b57f0e55a37b657feac5663590b85e
tree65dddaeb3ee4992d45872e719be98bba2207ed0e
parent00c24f53b563dafb2de8c5f642d24ac775b4479c
bcachefs: Fix a bug with the journal_seq_blacklist mechanism

Previously, we would start doing btree updates before writing the first
journal entry; if this was after an unclean shutdown, this could cause
those btree updates to not be blacklisted.

Also, move some code to headers for userspace debug tools.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_io.c
fs/bcachefs/btree_io.h
fs/bcachefs/journal_seq_blacklist.c
fs/bcachefs/journal_seq_blacklist.h
fs/bcachefs/recovery.c
fs/bcachefs/super.c