diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-12 22:11:31 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:47 +0200 |
commit | 5f659376fc1b9ad23b00a35242179b8961e0bc2d (patch) | |
tree | 486fa760d2862e4a809ef478a63c0094be88b683 /fs/bcachefs/movinggc.c | |
parent | bcachefs: Add a missing bch2_btree_path_traverse() call (diff) | |
download | linux-5f659376fc1b9ad23b00a35242179b8961e0bc2d.tar.xz linux-5f659376fc1b9ad23b00a35242179b8961e0bc2d.zip |
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.c | 2 |
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; |