Skip to content

Commit b268aa4

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent f2f61f4 commit b268aa4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/bcachefs/btree_gc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,6 @@ static int bch2_gc_btree_init(struct btree_trans *trans,
931931

932932
b = bch2_btree_id_root(c, btree_id)->b;
933933

934-
if (btree_node_fake(b))
935-
return 0;
936-
937934
six_lock_read(&b->c.lock, NULL, NULL);
938935
printbuf_reset(&buf);
939936
bch2_bpos_to_text(&buf, b->data->min_key);

0 commit comments

Comments
 (0)