Commit f2b542ba authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Go RW before check_alloc_info()



It's possible to do btree updates before going RW by adding them to the
list of updates for journal replay to do, but this is limited by what
fits in RAM. This patch switches the second alloc info phase to run
after going RW - btree_gc has already ensured the alloc btree itself is
correct - and tweaks the allocation path to deal with the potential
small inconsistencies.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5f5c7466
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment