• Kent Overstreet's avatar
    bcachefs: Improve trans->extra_journal_entries · 24de63da
    Kent Overstreet authored
    Instead of using a darray, we now allocate journal entries for the
    transaction commit path with our normal bump allocator - with an inlined
    fastpath, and using btree_transaction_stats to remember how much to
    initially allocate so as to avoid transaction restarts.
    
    This is prep work for converting write buffer updates to use this
    mechanism.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    24de63da
btree_update.c 23.9 KB