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

bcachefs: trans_for_each_path() no longer uses path->idx



path->idx is now a code smell: we should be using path_idx_t, since it's
stable across btree path reallocation.

This is also a bit faster, using the same loop counter vs. fetching
path->idx from each path we iterate over.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4c5289e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment