Commit ba8ed36e authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: don't queue btree nodes for rewrites during scan

many nodes found during scan will be old nodes, overwritten by newer
nodes
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7b4c4ccf
...@@ -1340,7 +1340,9 @@ static void btree_node_read_work(struct work_struct *work) ...@@ -1340,7 +1340,9 @@ static void btree_node_read_work(struct work_struct *work)
rb->start_time); rb->start_time);
bio_put(&rb->bio); bio_put(&rb->bio);
if (saw_error && !btree_node_read_error(b)) { if (saw_error &&
!btree_node_read_error(b) &&
c->curr_recovery_pass != BCH_RECOVERY_PASS_scan_for_btree_nodes) {
printbuf_reset(&buf); printbuf_reset(&buf);
bch2_bpos_to_text(&buf, b->key.k.p); bch2_bpos_to_text(&buf, b->key.k.p);
bch_err_ratelimited(c, "%s: rewriting btree node at btree=%s level=%u %s due to error", bch_err_ratelimited(c, "%s: rewriting btree node at btree=%s level=%u %s due to error",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment