Lines Matching full:paths
24 unsigned idx = path - trans->paths; in __btree_path_get()
39 EBUG_ON(!test_bit(path - trans->paths, trans->paths_allocated)); in __btree_path_put()
72 /* Iterate over paths within a transaction: */
84 static inline unsigned long *trans_paths_nr(struct btree_path *paths) in trans_paths_nr() argument
86 return &container_of(paths, struct btree_trans_paths, paths[0])->nr_paths; in trans_paths_nr()
89 static inline unsigned long *trans_paths_allocated(struct btree_path *paths) in trans_paths_allocated() argument
91 unsigned long *v = trans_paths_nr(paths); in trans_paths_allocated()
113 return trans->paths + *idx; in __trans_next_path()
143 ? trans->paths + trans->sorted[idx] in next_btree_path()
152 ? trans->paths + trans->sorted[idx - 1] in prev_btree_path()
170 _path = (_trans)->paths + _iter.path_idx, \
176 ((_path) = (_trans)->paths + trans->sorted[_i]), (_i) >= 0;\
212 if (trans->paths[path].ref > 1 || in bch2_btree_path_make_mut()
213 trans->paths[path].preserve) in bch2_btree_path_make_mut()
215 trans->paths[path].should_be_locked = false; in bch2_btree_path_make_mut()
228 return !bpos_eq(new_pos, trans->paths[path].pos) in bch2_btree_path_set_pos()
244 if (trans->paths[path].uptodate < BTREE_ITER_NEED_RELOCK) in bch2_btree_path_traverse()