Lines Matching defs:trans
19 struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans, in bch2_btree_node_lock_counts()
46 void bch2_btree_node_unlock_write(struct btree_trans *trans, in bch2_btree_node_unlock_write()
58 struct btree_trans *trans; member
119 static void __lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in __lock_graph_down()
128 static void lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in lock_graph_down()
154 static void trace_would_deadlock(struct lock_graph *g, struct btree_trans *trans) in trace_would_deadlock()
183 static int btree_trans_abort_preference(struct btree_trans *trans) in btree_trans_abort_preference()
226 struct btree_trans *trans = i->trans; in break_cycle() local
251 static int lock_graph_descend(struct lock_graph *g, struct btree_trans *trans, in lock_graph_descend()
287 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock()
412 struct btree_trans *trans = p; in bch2_six_check_for_deadlock() local
417 int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *path, in __bch2_btree_node_lock_write()
441 void bch2_btree_node_lock_write_nofail(struct btree_trans *trans, in bch2_btree_node_lock_write_nofail()
451 static inline bool btree_path_get_locks(struct btree_trans *trans, in btree_path_get_locks()
500 bool __bch2_btree_node_relock(struct btree_trans *trans, in __bch2_btree_node_relock()
524 bool bch2_btree_node_upgrade(struct btree_trans *trans, in bch2_btree_node_upgrade()
574 int bch2_btree_path_relock_intent(struct btree_trans *trans, in bch2_btree_path_relock_intent()
594 bool bch2_btree_path_relock_norestart(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_relock_norestart()
603 int __bch2_btree_path_relock(struct btree_trans *trans, in __bch2_btree_path_relock()
614 bool bch2_btree_path_upgrade_noupgrade_sibs(struct btree_trans *trans, in bch2_btree_path_upgrade_noupgrade_sibs()
628 bool __bch2_btree_path_upgrade(struct btree_trans *trans, in __bch2_btree_path_upgrade()
674 void __bch2_btree_path_downgrade(struct btree_trans *trans, in __bch2_btree_path_downgrade()
707 void bch2_trans_downgrade(struct btree_trans *trans) in bch2_trans_downgrade()
720 static inline void __bch2_trans_unlock(struct btree_trans *trans) in __bch2_trans_unlock()
729 static noinline __cold int bch2_trans_relock_fail(struct btree_trans *trans, struct btree_path *pat… in bch2_trans_relock_fail()
764 static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace) in __bch2_trans_relock()
790 int bch2_trans_relock(struct btree_trans *trans) in bch2_trans_relock()
795 int bch2_trans_relock_notrace(struct btree_trans *trans) in bch2_trans_relock_notrace()
800 void bch2_trans_unlock_noassert(struct btree_trans *trans) in bch2_trans_unlock_noassert()
807 void bch2_trans_unlock(struct btree_trans *trans) in bch2_trans_unlock()
814 void bch2_trans_unlock_long(struct btree_trans *trans) in bch2_trans_unlock_long()
820 void bch2_trans_unlock_write(struct btree_trans *trans) in bch2_trans_unlock_write()
831 int __bch2_trans_mutex_lock(struct btree_trans *trans, in __bch2_trans_mutex_lock()
875 static bool bch2_trans_locked(struct btree_trans *trans) in bch2_trans_locked()
886 void bch2_trans_verify_locks(struct btree_trans *trans) in bch2_trans_verify_locks()