diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 16:18:41 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-03 14:44:18 -0400 |
commit | b268aa4e7fb8be3c50e25a09008fb2feed2cd345 (patch) | |
tree | 1622daabef17cb99f7d13380f863949d47cf6bca /fs/bcachefs | |
parent | f2f61f4192de536fa36bebe49dc2c241213b53ee (diff) | |
download | lwn-b268aa4e7fb8be3c50e25a09008fb2feed2cd345.tar.gz lwn-b268aa4e7fb8be3c50e25a09008fb2feed2cd345.zip |
bcachefs: Don't skip fake btree roots in fsck
When a btree root is unreadable, we might still have keys fro the
journal to walk and mark.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/btree_gc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index e5d2c6daa663..9db9c8a5beaa 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -931,9 +931,6 @@ static int bch2_gc_btree_init(struct btree_trans *trans, b = bch2_btree_id_root(c, btree_id)->b; - if (btree_node_fake(b)) - return 0; - six_lock_read(&b->c.lock, NULL, NULL); printbuf_reset(&buf); bch2_bpos_to_text(&buf, b->data->min_key); |