Commit 3f3bc66e authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Optimize btree_path_alloc()



 - move slowpath code to a separate function, btree_path_overflow()
 - no need to use hweight64
 - copy nr_max_paths from btree_transaction_stats to btree_trans,
   avoiding a data dependency in the fast path

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 14d8f26a
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