bcachefs: fix fsck error
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Dec 2022 20:31:27 +0000 (15:31 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:48 +0000 (17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_io.c

index 9dedac2c78858a1b54436160a4f6bc9b7efdfef7..81f513c7a1a01c492b9972a2806b5970946a59ad 100644 (file)
@@ -557,7 +557,7 @@ enum btree_validate_ret {
                                                                        \
        if (type == BTREE_ERR_FIXABLE &&                                \
            write == READ &&                                            \
-           !test_bit(BCH_FS_INITIAL_GC_DONE, &c->flags)) {             \
+           !test_bit(BCH_FS_FSCK_DONE, &c->flags)) {                   \
                mustfix_fsck_err(c, "%s", out.buf);                     \
                goto out;                                               \
        }                                                               \