Lines Matching full:paths
24 unsigned idx = path - trans->paths; in __btree_path_get()
40 EBUG_ON(path - trans->paths >= trans->nr_paths); in __btree_path_put()
41 EBUG_ON(!test_bit(path - trans->paths, trans->paths_allocated)); in __btree_path_put()
74 /* Iterate over paths within a transaction: */
86 static inline unsigned long *trans_paths_nr(struct btree_path *paths) in trans_paths_nr() argument
88 return &container_of(paths, struct btree_trans_paths, paths[0])->nr_paths; in trans_paths_nr()
91 static inline unsigned long *trans_paths_allocated(struct btree_path *paths) in trans_paths_allocated() argument
93 unsigned long *v = trans_paths_nr(paths); in trans_paths_allocated()
115 return trans->paths + *idx; in __trans_next_path()
145 ? trans->paths + trans->sorted[idx] in next_btree_path()
154 ? trans->paths + trans->sorted[idx - 1] in prev_btree_path()
172 _path = (_trans)->paths + _iter.path_idx, \
178 ((_path) = (_trans)->paths + trans->sorted[_i]), (_i) >= 0;\
214 if (trans->paths[path].ref > 1 || in bch2_btree_path_make_mut()
215 trans->paths[path].preserve) in bch2_btree_path_make_mut()
217 trans->paths[path].should_be_locked = false; in bch2_btree_path_make_mut()
230 return !bpos_eq(new_pos, trans->paths[path].pos) in bch2_btree_path_set_pos()
246 if (trans->paths[path].uptodate < BTREE_ITER_NEED_RELOCK) in bch2_btree_path_traverse()