Lines Matching defs:trans

21 static inline void __btree_path_get(struct btree_trans *trans, struct btree_path *path, bool intent)  in __btree_path_get()
37 static inline bool __btree_path_put(struct btree_trans *trans, struct btree_path *path, bool intent) in __btree_path_put()
77 static inline void btree_trans_sort_paths(struct btree_trans *trans) in btree_trans_sort_paths()
102 __trans_next_path(struct btree_trans *trans, unsigned *idx) in __trans_next_path()
137 static inline struct btree_path *next_btree_path(struct btree_trans *trans, struct btree_path *path) in next_btree_path()
148 static inline struct btree_path *prev_btree_path(struct btree_trans *trans, struct btree_path *path) in prev_btree_path()
188 __trans_next_path_with_node(struct btree_trans *trans, struct btree *b, in __trans_next_path_with_node()
209 bch2_btree_path_make_mut(struct btree_trans *trans, in bch2_btree_path_make_mut()
225 bch2_btree_path_set_pos(struct btree_trans *trans, in bch2_btree_path_set_pos()
240 static inline int __must_check bch2_btree_path_traverse(struct btree_trans *trans, in bch2_btree_path_traverse()
281 static inline int bch2_trans_mutex_lock(struct btree_trans *trans, struct mutex *lock) in bch2_trans_mutex_lock()
292 static inline void bch2_trans_verify_paths(struct btree_trans *trans) {} in bch2_trans_verify_paths()
293 static inline void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, in bch2_assert_pos_locked()
312 static inline int trans_was_restarted(struct btree_trans *trans, u32 restart_count) in trans_was_restarted()
321 static inline void bch2_trans_verify_not_restarted(struct btree_trans *trans, in bch2_trans_verify_not_restarted()
330 static inline void bch2_trans_verify_not_unlocked_or_in_restart(struct btree_trans *trans) in bch2_trans_verify_not_unlocked_or_in_restart()
337 static int btree_trans_restart_foreign_task(struct btree_trans *trans, int err, unsigned long ip) in btree_trans_restart_foreign_task()
348 static int btree_trans_restart_ip(struct btree_trans *trans, int err, unsigned long ip) in btree_trans_restart_ip()
359 static int btree_trans_restart(struct btree_trans *trans, int err) in btree_trans_restart()
364 static inline int trans_maybe_inject_restart(struct btree_trans *trans, unsigned long ip) in trans_maybe_inject_restart()
381 static inline void bch2_btree_path_downgrade(struct btree_trans *trans, in bch2_btree_path_downgrade()
406 static inline struct bkey_s_c bch2_btree_iter_peek(struct btree_trans *trans, in bch2_btree_iter_peek()
414 static inline struct bkey_s_c bch2_btree_iter_peek_prev(struct btree_trans *trans, struct btree_ite… in bch2_btree_iter_peek_prev()
437 static inline void bch2_btree_iter_set_pos(struct btree_trans *trans, in bch2_btree_iter_set_pos()
457 static inline void bch2_btree_iter_set_snapshot(struct btree_trans *trans, in bch2_btree_iter_set_snapshot()
469 static inline unsigned bch2_btree_iter_flags(struct btree_trans *trans, in bch2_btree_iter_flags()
498 static inline void bch2_trans_iter_init_common(struct btree_trans *trans, in bch2_trans_iter_init_common()
525 static inline void bch2_trans_iter_init(struct btree_trans *trans, in bch2_trans_iter_init()
554 static inline void *bch2_trans_kmalloc(struct btree_trans *trans, size_t size) in bch2_trans_kmalloc()
569 static inline void *bch2_trans_kmalloc_nomemzero(struct btree_trans *trans, size_t size) in bch2_trans_kmalloc_nomemzero()
583 static inline struct bkey_s_c __bch2_bkey_get_iter(struct btree_trans *trans, in __bch2_bkey_get_iter()
600 static inline struct bkey_s_c bch2_bkey_get_iter(struct btree_trans *trans, in bch2_bkey_get_iter()
626 static inline int __bch2_bkey_get_val_typed(struct btree_trans *trans, in __bch2_bkey_get_val_typed()
680 static inline struct bkey_s_c bch2_btree_iter_peek_prev_type(struct btree_trans *trans, in bch2_btree_iter_peek_prev_type()
688 static inline struct bkey_s_c bch2_btree_iter_peek_type(struct btree_trans *trans, in bch2_btree_iter_peek_type()
696 static inline struct bkey_s_c bch2_btree_iter_peek_max_type(struct btree_trans *trans, in bch2_btree_iter_peek_max_type()
712 static inline int btree_trans_too_many_iters(struct btree_trans *trans) in btree_trans_too_many_iters()