Commit c26463ce authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix move_extent_fail counter

fail counters need to be events, not numbers of sectors - or the
calculations the tests use for determining if we've had too many
slowpath events don't work.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent fc0ee376
......@@ -374,7 +374,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
&m->ctxt->stats->sectors_raced);
}
this_cpu_add(c->counters[BCH_COUNTER_move_extent_fail], new->k.size);
this_cpu_inc(c->counters[BCH_COUNTER_move_extent_fail]);
bch2_btree_iter_advance(&iter);
goto next;
......
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