bcachefs: Silence spurious copygc err when shutting down

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-04-04 23:36:56 -04:00 committed by Kent Overstreet
parent f0ac7df23d
commit afb6f7f61b

View File

@ -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) {