summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-10-12 16:11:31 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:47 -0400
commit5f659376fc1b9ad23b00a35242179b8961e0bc2d (patch)
tree486fa760d2862e4a809ef478a63c0094be88b683 /fs/bcachefs/movinggc.c
parentef0732861a3af5bd1c5b08b6f64ca5b2cbee04bc (diff)
bcachefs: Suppress -EROFS messages when shutting down
This isn't actually an error condition, this just indicates a normal shutdown - no reason for these to be in the log. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index 09f4303de1f6..66f18f711d53 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -319,7 +319,7 @@ static int bch2_copygc(struct bch_fs *c)
writepoint_ptr(&c->copygc_write_point),
false,
copygc_pred, NULL);
- if (ret < 0)
+ if (ret < 0 && ret != -EROFS)
bch_err(c, "error from bch2_move_data() in copygc: %s", bch2_err_str(ret));
if (ret)
return ret;