Commit 1b1bd0fd authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: -EROFS doesn't count as move_extent_start_fail

The automated tests check if we've hit too many slowpath/error path
events and fail the test - if we're just shutting down, that naturally
shouldn't count.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ae4d612c
......@@ -338,6 +338,10 @@ int bch2_move_extent(struct moving_context *ctxt,
if (ret == -BCH_ERR_data_update_done)
return 0;
if (bch2_err_matches(ret, EROFS) ||
bch2_err_matches(ret, BCH_ERR_transaction_restart))
return ret;
this_cpu_inc(c->counters[BCH_COUNTER_move_extent_start_fail]);
if (trace_move_extent_start_fail_enabled()) {
struct printbuf buf = PRINTBUF;
......
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