]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Silence spurious copygc err when shutting down
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 5 Apr 2022 03:36:56 +0000 (23:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:30 +0000 (17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/movinggc.c

index b9e1bd7b1d05a0790181f281f8cc103a00d476f4..cd7a9d81dfe887af8de5816465993bd09411d596 100644 (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) {