Lines Matching full:paths
23 unsigned idx = path - trans->paths; in __btree_path_get()
39 EBUG_ON(path - trans->paths >= trans->nr_paths); in __btree_path_put()
40 EBUG_ON(!test_bit(path - trans->paths, trans->paths_allocated)); in __btree_path_put()
73 /* Iterate over paths within a transaction: */
85 static inline unsigned long *trans_paths_nr(struct btree_path *paths) in trans_paths_nr() argument
87 return &container_of(paths, struct btree_trans_paths, paths[0])->nr_paths; in trans_paths_nr()
90 static inline unsigned long *trans_paths_allocated(struct btree_path *paths) in trans_paths_allocated() argument
92 unsigned long *v = trans_paths_nr(paths); in trans_paths_allocated()
114 return trans->paths + *idx; in __trans_next_path()
144 ? trans->paths + trans->sorted[idx] in next_btree_path()
153 ? trans->paths + trans->sorted[idx - 1] in prev_btree_path()
171 _path = (_trans)->paths + _iter.path_idx, \
177 ((_path) = (_trans)->paths + trans->sorted[_i]), (_i) >= 0;\
213 if (trans->paths[path].ref > 1 || in bch2_btree_path_make_mut()
214 trans->paths[path].preserve) in bch2_btree_path_make_mut()
216 trans->paths[path].should_be_locked = false; in bch2_btree_path_make_mut()
229 return !bpos_eq(new_pos, trans->paths[path].pos) in bch2_btree_path_set_pos()
245 if (trans->paths[path].uptodate < BTREE_ITER_NEED_RELOCK) in bch2_btree_path_traverse()