Lines Matching defs:trans
28 struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans, in bch2_btree_node_lock_counts()
55 void bch2_btree_node_unlock_write(struct btree_trans *trans, in bch2_btree_node_unlock_write()
67 struct btree_trans *trans; member
123 static void __lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in __lock_graph_down()
132 static void lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in lock_graph_down()
153 static void trace_would_deadlock(struct lock_graph *g, struct btree_trans *trans) in trace_would_deadlock()
182 static int btree_trans_abort_preference(struct btree_trans *trans) in btree_trans_abort_preference()
223 struct btree_trans *trans = i->trans; in break_cycle() local
248 static int lock_graph_descend(struct lock_graph *g, struct btree_trans *trans, in lock_graph_descend()
285 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock()
410 struct btree_trans *trans = p; in bch2_six_check_for_deadlock() local
415 int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *path, in __bch2_btree_node_lock_write()
439 void bch2_btree_node_lock_write_nofail(struct btree_trans *trans, in bch2_btree_node_lock_write_nofail()
475 static inline bool btree_path_get_locks(struct btree_trans *trans, in btree_path_get_locks()
526 bool __bch2_btree_node_relock(struct btree_trans *trans, in __bch2_btree_node_relock()
550 bool bch2_btree_node_upgrade(struct btree_trans *trans, in bch2_btree_node_upgrade()
614 int bch2_btree_path_relock_intent(struct btree_trans *trans, in bch2_btree_path_relock_intent()
634 bool bch2_btree_path_relock_norestart(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_relock_norestart()
641 int __bch2_btree_path_relock(struct btree_trans *trans, in __bch2_btree_path_relock()
652 bool bch2_btree_path_upgrade_noupgrade_sibs(struct btree_trans *trans, in bch2_btree_path_upgrade_noupgrade_sibs()
664 bool __bch2_btree_path_upgrade(struct btree_trans *trans, in __bch2_btree_path_upgrade()
708 void __bch2_btree_path_downgrade(struct btree_trans *trans, in __bch2_btree_path_downgrade()
741 void bch2_trans_downgrade(struct btree_trans *trans) in bch2_trans_downgrade()
753 int bch2_trans_relock(struct btree_trans *trans) in bch2_trans_relock()
797 int bch2_trans_relock_notrace(struct btree_trans *trans) in bch2_trans_relock_notrace()
813 void bch2_trans_unlock_noassert(struct btree_trans *trans) in bch2_trans_unlock_noassert()
822 void bch2_trans_unlock(struct btree_trans *trans) in bch2_trans_unlock()
831 void bch2_trans_unlock_long(struct btree_trans *trans) in bch2_trans_unlock_long()
837 bool bch2_trans_locked(struct btree_trans *trans) in bch2_trans_locked()
848 int __bch2_trans_mutex_lock(struct btree_trans *trans, in __bch2_trans_mutex_lock()
885 void bch2_trans_verify_locks(struct btree_trans *trans) in bch2_trans_verify_locks()