diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-08-28 13:20:31 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:26 -0400 |
commit | ad7e137ebc3dcadbaa37d2f464728c915e039e1d (patch) | |
tree | 0a904acd36d11585cff549c27130940dd422276a /fs/bcachefs/recovery.c | |
parent | 05cf02b5a10ae9b60aad4b1fe4049eb4e7603b4f (diff) | |
download | lwn-ad7e137ebc3dcadbaa37d2f464728c915e039e1d.tar.gz lwn-ad7e137ebc3dcadbaa37d2f464728c915e039e1d.zip |
bcachefs: Switch reconstruct_alloc to a mount option
Right now this is the only way of repairing bucket gens in the future
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 2aa63cc75f50..c9558ccb9a26 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -659,7 +659,7 @@ static int read_btree_roots(struct bch_fs *c) continue; if (i == BTREE_ID_ALLOC && - test_reconstruct_alloc(c)) { + c->opts.reconstruct_alloc) { c->sb.compat &= ~(1ULL << BCH_COMPAT_FEAT_ALLOC_INFO); continue; } |