diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-20 22:19:48 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-08 17:29:20 -0400 |
| commit | f04158290d8bdd282899c6dc1539300df40b77d1 (patch) | |
| tree | 8651fd521a19c0704e2f7786b9497947fcd30f3a /fs/bcachefs/journal_seq_blacklist.h | |
| parent | e7f63c67fcb4a479651ed8c50306bb654749faab (diff) | |
| download | linux-f04158290d8bdd282899c6dc1539300df40b77d1.tar.gz linux-f04158290d8bdd282899c6dc1539300df40b77d1.tar.bz2 linux-f04158290d8bdd282899c6dc1539300df40b77d1.zip | |
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>
Diffstat (limited to 'fs/bcachefs/journal_seq_blacklist.h')
| -rw-r--r-- | fs/bcachefs/journal_seq_blacklist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_seq_blacklist.h b/fs/bcachefs/journal_seq_blacklist.h index afb886ec8e25..d47636f96fdc 100644 --- a/fs/bcachefs/journal_seq_blacklist.h +++ b/fs/bcachefs/journal_seq_blacklist.h @@ -17,6 +17,6 @@ int bch2_blacklist_table_initialize(struct bch_fs *); extern const struct bch_sb_field_ops bch_sb_field_ops_journal_seq_blacklist; -void bch2_blacklist_entries_gc(struct work_struct *); +bool bch2_blacklist_entries_gc(struct bch_fs *); #endif /* _BCACHEFS_JOURNAL_SEQ_BLACKLIST_H */ |
