mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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:
parent
3be132f93c
commit
3aecbb01a1
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user