]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/recovery.h
Update bcachefs sources to 1a739db0b256 bcachefs; guard against overflow in btree...
[bcachefs-tools-debian] / libbcachefs / recovery.h
index 447590f606097d0faa6cd90c3d6c26f457daf5fe..175a21a0bf26dfdfc759b1cbbb907ea4a47626fe 100644 (file)
@@ -10,6 +10,9 @@ extern const char * const bch2_recovery_passes[];
 static inline int bch2_run_explicit_recovery_pass(struct bch_fs *c,
                                                  enum bch_recovery_pass pass)
 {
+       if (c->recovery_passes_explicit & BIT_ULL(pass))
+               return 0;
+
        bch_info(c, "running explicit recovery pass %s (%u), currently at %s (%u)",
                 bch2_recovery_passes[pass], pass,
                 bch2_recovery_passes[c->curr_recovery_pass], c->curr_recovery_pass);