bcachefs: Remove redundant calls to btree_lost_data()

The btree node read path calls this before returning the read error.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-04-24 09:13:28 -04:00
parent 3be132f93c
commit 3aecbb01a1
2 changed files with 0 additions and 10 deletions

View File

@ -378,10 +378,6 @@ static int bch2_btree_repair_topology_recurse(struct btree_trans *trans, struct
b->c.level, cur_k.k->k.p);
if (ret)
break;
ret = bch2_btree_lost_data(c, b->c.btree_id);
if (ret)
break;
continue;
}
@ -543,9 +539,6 @@ int bch2_check_topology(struct bch_fs *c)
bch2_btree_id_to_text(&buf, i);
if (r->error) {
ret = bch2_btree_lost_data(c, i);
if (ret)
break;
reconstruct_root:
bch_info(c, "btree root %s unreadable, must recover from scan", buf.buf);

View File

@ -587,9 +587,6 @@ static int read_btree_roots(struct bch_fs *c)
buf.buf, bch2_err_str(ret))) {
if (btree_id_is_alloc(i))
r->error = 0;
ret = bch2_btree_lost_data(c, i);
BUG_ON(ret);
}
}