Skip to content

Commit ba8ed36

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/bcachefs/btree_io.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,9 @@ static void btree_node_read_work(struct work_struct *work)
13401340
rb->start_time);
13411341
bio_put(&rb->bio);
13421342

1343-
if (saw_error && !btree_node_read_error(b)) {
1343+
if (saw_error &&
1344+
!btree_node_read_error(b) &&
1345+
c->curr_recovery_pass != BCH_RECOVERY_PASS_scan_for_btree_nodes) {
13441346
printbuf_reset(&buf);
13451347
bch2_bpos_to_text(&buf, b->key.k.p);
13461348
bch_err_ratelimited(c, "%s: rewriting btree node at btree=%s level=%u %s due to error",

0 commit comments

Comments
 (0)