diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-04 23:36:56 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:30 -0400 |
commit | afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10 (patch) | |
tree | 82a39fe871367c1f5f9edf4c9bdb4d77a4d5f55a /fs/bcachefs/movinggc.c | |
parent | f0ac7df23d04f3c6d4cd82899aad7f06f6a0b1d4 (diff) | |
download | lwn-afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10.tar.gz lwn-afb6f7f61ba38f4d4d96e8d1bf5fb9e7809e6c10.zip |
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.c | 4 |
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, §ors_not_moved, &buckets_not_moved); if (ret) { |