Lines Matching refs:paths
54 /* Iterate over paths within a transaction: */
66 static inline unsigned long *trans_paths_nr(struct btree_path *paths)
68 return &container_of(paths, struct btree_trans_paths, paths[0])->nr_paths;
71 static inline unsigned long *trans_paths_allocated(struct btree_path *paths)
73 unsigned long *v = trans_paths_nr(paths);
95 return trans->paths + *idx;
125 ? trans->paths + trans->sorted[idx]
134 ? trans->paths + trans->sorted[idx - 1]
152 _path = (_trans)->paths + _iter.path_idx, \
158 ((_path) = (_trans)->paths + trans->sorted[_i]), (_i) >= 0;\
194 if (trans->paths[path].ref > 1 ||
195 trans->paths[path].preserve)
197 trans->paths[path].should_be_locked = false;
210 return !bpos_eq(new_pos, trans->paths[path].pos)
226 if (trans->paths[path].uptodate < BTREE_ITER_NEED_RELOCK)