From afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 4 Apr 2022 23:36:56 -0400 Subject: [PATCH] bcachefs: Silence spurious copygc err when shutting down Signed-off-by: Kent Overstreet --- fs/bcachefs/movinggc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index b9e1bd7b1d05a..cd7a9d81dfe88 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, §ors_not_moved, &buckets_not_moved); if (ret) { -- 2.39.5