• Kent Overstreet's avatar
    bcachefs: Go RW before check_alloc_info() · f2b542ba
    Kent Overstreet authored
    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>
    f2b542ba
alloc_background.c 38 KB