Skip to content

Commit 2fea3aa

Browse files
author
Kent Overstreet
committed
bcachefs: Filter out harmless EROFS error messages
These just indicate that we're shutting down. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 473f09f commit 2fea3aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/bcachefs/move.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ static int __bch2_move_data_phys(struct moving_context *ctxt,
784784
goto err;
785785

786786
ret = bch2_btree_write_buffer_tryflush(trans);
787-
bch_err_msg(c, ret, "flushing btree write buffer");
787+
if (!bch2_err_matches(ret, EROFS))
788+
bch_err_msg(c, ret, "flushing btree write buffer");
788789
if (ret)
789790
goto err;
790791

0 commit comments

Comments
 (0)