bcachefs: Filter out harmless EROFS error messages
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 May 2025 17:50:00 +0000 (13:50 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 May 2025 20:58:32 +0000 (16:58 -0400)
These just indicate that we're shutting down.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/move.c

index fc396b9..dfdbb92 100644 (file)
@@ -784,7 +784,8 @@ static int __bch2_move_data_phys(struct moving_context *ctxt,
                goto err;
 
        ret = bch2_btree_write_buffer_tryflush(trans);
-       bch_err_msg(c, ret, "flushing btree write buffer");
+       if (!bch2_err_matches(ret, EROFS))
+               bch_err_msg(c, ret, "flushing btree write buffer");
        if (ret)
                goto err;