bcachefs: journal seq blacklist gc no longer has to walk btree
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Apr 2024 02:19:48 +0000 (22:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 8 May 2024 21:29:20 +0000 (17:29 -0400)
commitf04158290d8bdd282899c6dc1539300df40b77d1
tree8651fd521a19c0704e2f7786b9497947fcd30f3a
parente7f63c67fcb4a479651ed8c50306bb654749faab
bcachefs: journal seq blacklist gc no longer has to walk btree

Since btree_ptr_v2, we no longer require the journal seq blacklist table
for skipping blacklisted bsets (btree node entries); the pointer to a
given node indicates how much data is present.

Therefore there's no longer any need for journal seq blacklist gc to
walk the btree - we can prune entries older than journal last_seq.

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