bcachefs: Catch data_update_done events in trace_io_move_start_fail

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-05-27 21:45:56 -04:00
parent c7897b5055
commit 327971cef5

View File

@ -436,9 +436,6 @@ int bch2_move_extent(struct moving_context *ctxt,
err_free:
kfree(io);
err:
if (bch2_err_matches(ret, BCH_ERR_data_update_done))
return 0;
if (bch2_err_matches(ret, EROFS) ||
bch2_err_matches(ret, BCH_ERR_transaction_restart))
return ret;
@ -454,6 +451,9 @@ int bch2_move_extent(struct moving_context *ctxt,
trace_io_move_start_fail(c, buf.buf);
printbuf_exit(&buf);
}
if (bch2_err_matches(ret, BCH_ERR_data_update_done))
return 0;
return ret;
}