Lines Matching defs:trans

58 static inline void btree_trans_sort_paths(struct btree_trans *trans)  in btree_trans_sort_paths()
83 __trans_next_path(struct btree_trans *trans, unsigned *idx) in __trans_next_path()
118 static inline struct btree_path *next_btree_path(struct btree_trans *trans, struct btree_path *path) in next_btree_path()
129 static inline struct btree_path *prev_btree_path(struct btree_trans *trans, struct btree_path *path) in prev_btree_path()
169 __trans_next_path_with_node(struct btree_trans *trans, struct btree *b, in __trans_next_path_with_node()
190 bch2_btree_path_make_mut(struct btree_trans *trans, in bch2_btree_path_make_mut()
206 bch2_btree_path_set_pos(struct btree_trans *trans, in bch2_btree_path_set_pos()
219 static inline int __must_check bch2_btree_path_traverse(struct btree_trans *trans, in bch2_btree_path_traverse()
255 static inline int bch2_trans_mutex_lock(struct btree_trans *trans, struct mutex *lock) in bch2_trans_mutex_lock()
267 static inline void bch2_trans_verify_paths(struct btree_trans *trans) {} in bch2_trans_verify_paths()
268 static inline void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, in bch2_assert_pos_locked()
288 static inline int trans_was_restarted(struct btree_trans *trans, u32 restart_count) in trans_was_restarted()
297 static inline void bch2_trans_verify_not_restarted(struct btree_trans *trans, in bch2_trans_verify_not_restarted()
306 static inline void bch2_trans_verify_not_in_restart(struct btree_trans *trans) in bch2_trans_verify_not_in_restart()
313 static int btree_trans_restart_nounlock(struct btree_trans *trans, int err) in btree_trans_restart_nounlock()
324 static int btree_trans_restart(struct btree_trans *trans, int err) in btree_trans_restart()
335 static inline void bch2_btree_path_downgrade(struct btree_trans *trans, in bch2_btree_path_downgrade()
385 struct btree_trans *trans = iter->trans; in bch2_btree_iter_set_pos() local
415 static inline unsigned __bch2_btree_iter_flags(struct btree_trans *trans, in __bch2_btree_iter_flags()
437 static inline unsigned bch2_btree_iter_flags(struct btree_trans *trans, in bch2_btree_iter_flags()
450 static inline void bch2_trans_iter_init_common(struct btree_trans *trans, in bch2_trans_iter_init_common()
478 static inline void bch2_trans_iter_init(struct btree_trans *trans, in bch2_trans_iter_init()
499 struct btree_trans *trans = iter->trans; in set_btree_iter_dontneed() local
507 static inline void *bch2_trans_kmalloc(struct btree_trans *trans, size_t size) in bch2_trans_kmalloc()
522 static inline void *bch2_trans_kmalloc_nomemzero(struct btree_trans *trans, size_t size) in bch2_trans_kmalloc_nomemzero()
536 static inline struct bkey_s_c __bch2_bkey_get_iter(struct btree_trans *trans, in __bch2_bkey_get_iter()
553 static inline struct bkey_s_c bch2_bkey_get_iter(struct btree_trans *trans, in bch2_bkey_get_iter()
565 static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans, in __bch2_bkey_get_val_typed()
643 static inline int btree_trans_too_many_iters(struct btree_trans *trans) in btree_trans_too_many_iters()
779 __bch2_btree_iter_peek_and_restart(struct btree_trans *trans, in __bch2_btree_iter_peek_and_restart()