Loading fs/bcachefs/btree_gc.c +6 −7 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "move.h" #include "recovery_passes.h" #include "reflink.h" #include "recovery.h" #include "replicas.h" #include "super-io.h" #include "trace.h" Loading Loading @@ -359,11 +360,9 @@ static int bch2_btree_repair_topology_recurse(struct btree_trans *trans, struct if (ret) break; if (!btree_id_is_alloc(b->c.btree_id)) { ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_scan_for_btree_nodes); ret = bch2_btree_lost_data(c, b->c.btree_id); if (ret) break; } continue; } Loading Loading @@ -525,7 +524,7 @@ int bch2_check_topology(struct bch_fs *c) bch2_btree_id_to_text(&buf, i); if (r->error) { ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_scan_for_btree_nodes); ret = bch2_btree_lost_data(c, i); if (ret) break; reconstruct_root: Loading Loading @@ -741,7 +740,7 @@ static int bch2_gc_btrees(struct bch_fs *c) (printbuf_reset(&buf), bch2_btree_id_to_text(&buf, btree), buf.buf))) ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_check_topology); ret = bch2_btree_lost_data(c, btree); } fsck_err: printbuf_exit(&buf); Loading Loading
fs/bcachefs/btree_gc.c +6 −7 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include "move.h" #include "recovery_passes.h" #include "reflink.h" #include "recovery.h" #include "replicas.h" #include "super-io.h" #include "trace.h" Loading Loading @@ -359,11 +360,9 @@ static int bch2_btree_repair_topology_recurse(struct btree_trans *trans, struct if (ret) break; if (!btree_id_is_alloc(b->c.btree_id)) { ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_scan_for_btree_nodes); ret = bch2_btree_lost_data(c, b->c.btree_id); if (ret) break; } continue; } Loading Loading @@ -525,7 +524,7 @@ int bch2_check_topology(struct bch_fs *c) bch2_btree_id_to_text(&buf, i); if (r->error) { ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_scan_for_btree_nodes); ret = bch2_btree_lost_data(c, i); if (ret) break; reconstruct_root: Loading Loading @@ -741,7 +740,7 @@ static int bch2_gc_btrees(struct bch_fs *c) (printbuf_reset(&buf), bch2_btree_id_to_text(&buf, btree), buf.buf))) ret = bch2_run_explicit_recovery_pass(c, BCH_RECOVERY_PASS_check_topology); ret = bch2_btree_lost_data(c, btree); } fsck_err: printbuf_exit(&buf); Loading