summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-10-28 19:33:59 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:30 -0400
commitff929515cc52ed693ff2116be3af9f32122e9b54 (patch)
tree275f7c6ab71076f6e6c40048d545b11a36df4e47 /fs/bcachefs/recovery.c
parentc4e065c23c4ad464be2fb1c4dfa70090cc3d0c66 (diff)
downloadlwn-ff929515cc52ed693ff2116be3af9f32122e9b54.tar.gz
lwn-ff929515cc52ed693ff2116be3af9f32122e9b54.zip
bcachefs: Trust btree alloc info at runtime
This lets us avoid a cache miss in the write path. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r--fs/bcachefs/recovery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index 23f3ed54fadd..2c441a278044 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -864,6 +864,8 @@ int bch2_fs_recovery(struct bch_fs *c)
goto err;
}
bch_verbose(c, "alloc write done");
+
+ set_bit(BCH_FS_ALLOC_WRITTEN, &c->flags);
}
if (!c->sb.clean) {