Skip to content
Commit 24de63da authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improve trans->extra_journal_entries



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>
parent e4e49375
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment