mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
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:
parent
c7897b5055
commit
327971cef5
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user