summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-04-05 06:36:56 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:30 +0300
commitafb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10 (patch)
tree82a39fe871367c1f5f9edf4c9bdb4d77a4d5f55a /fs/bcachefs/movinggc.c
parentf0ac7df23d04f3c6d4cd82899aad7f06f6a0b1d4 (diff)
downloadlinux-afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10.tar.xz
bcachefs: Silence spurious copygc err when shutting down
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index b9e1bd7b1d05..cd7a9d81dfe8 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -290,10 +290,10 @@ static int bch2_copygc(struct bch_fs *c)
writepoint_ptr(&c->copygc_write_point),
copygc_pred, NULL,
&move_stats);
- if (ret) {
+ if (ret < 0)
bch_err(c, "error %i from bch2_move_data() in copygc", ret);
+ if (ret)
return ret;
- }
ret = check_copygc_was_done(c, &sectors_not_moved, &buckets_not_moved);
if (ret) {