bcachefs: Optimize btree_path_alloc()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 Sep 2022 20:19:56 +0000 (16:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:42 +0000 (17:09 -0400)
commit3f3bc66ef0601e425a3c2901b34a825d4166da63
tree061e0012096a49218db2bbf8cad29edd5f910561
parent14d8f26ad09d05676e90dc4fe1e6728e13d84607
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: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c