Skip to content

Commit 1b1bd0f

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/bcachefs/move.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ int bch2_move_extent(struct moving_context *ctxt,
338338
if (ret == -BCH_ERR_data_update_done)
339339
return 0;
340340

341+
if (bch2_err_matches(ret, EROFS) ||
342+
bch2_err_matches(ret, BCH_ERR_transaction_restart))
343+
return ret;
344+
341345
this_cpu_inc(c->counters[BCH_COUNTER_move_extent_start_fail]);
342346
if (trace_move_extent_start_fail_enabled()) {
343347
struct printbuf buf = PRINTBUF;

0 commit comments

Comments
 (0)