summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 58aee7aeef82..3a1023df43f3 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -180,6 +180,10 @@ int bch2_fs_recovery(struct bch_fs *c)
unsigned level;
struct bkey_i *k;
+ if (i == BTREE_ID_ALLOC &&
+ c->opts.kill_alloc_btree)
+ continue;
+
k = btree_root_find(c, clean, j, i, &level);
if (!k)
continue;