From: Kent Overstreet Date: Tue, 5 Apr 2022 03:36:56 +0000 (-0400) Subject: bcachefs: Silence spurious copygc err when shutting down X-Git-Tag: v6.7-rc1~201^2~1008 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Silence spurious copygc err when shutting down Signed-off-by: Kent Overstreet --- 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) {