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()
185 static int btree_trans_abort_preference(struct btree_trans *trans) in btree_trans_abort_preference()
228 struct btree_trans *trans = i->trans; in break_cycle() local
253 static int lock_graph_descend(struct lock_graph *g, struct btree_trans *trans, in lock_graph_descend()
289 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock()
414 struct btree_trans *trans = p; in bch2_six_check_for_deadlock() local
419 int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *path, in __bch2_btree_node_lock_write()
443 void bch2_btree_node_lock_write_nofail(struct btree_trans *trans, in bch2_btree_node_lock_write_nofail()
453 static inline bool btree_path_get_locks(struct btree_trans *trans, in btree_path_get_locks()
502 bool __bch2_btree_node_relock(struct btree_trans *trans, in __bch2_btree_node_relock()
526 bool bch2_btree_node_upgrade(struct btree_trans *trans, in bch2_btree_node_upgrade()
576 int bch2_btree_path_relock_intent(struct btree_trans *trans, in bch2_btree_path_relock_intent()
596 bool bch2_btree_path_relock_norestart(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_relock_norestart()
605 int __bch2_btree_path_relock(struct btree_trans *trans, in __bch2_btree_path_relock()
616 bool bch2_btree_path_upgrade_noupgrade_sibs(struct btree_trans *trans, in bch2_btree_path_upgrade_noupgrade_sibs()
630 bool __bch2_btree_path_upgrade(struct btree_trans *trans, in __bch2_btree_path_upgrade()
676 void __bch2_btree_path_downgrade(struct btree_trans *trans, in __bch2_btree_path_downgrade()
709 void bch2_trans_downgrade(struct btree_trans *trans) in bch2_trans_downgrade()
722 static inline void __bch2_trans_unlock(struct btree_trans *trans) in __bch2_trans_unlock()
731 static noinline __cold int bch2_trans_relock_fail(struct btree_trans *trans, struct btree_path *pat… in bch2_trans_relock_fail()
766 static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace) in __bch2_trans_relock()
792 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()
802 void bch2_trans_unlock_noassert(struct btree_trans *trans) in bch2_trans_unlock_noassert()
809 void bch2_trans_unlock(struct btree_trans *trans) in bch2_trans_unlock()
816 void bch2_trans_unlock_long(struct btree_trans *trans) in bch2_trans_unlock_long()
822 void bch2_trans_unlock_write(struct btree_trans *trans) in bch2_trans_unlock_write()
833 int __bch2_trans_mutex_lock(struct btree_trans *trans, in __bch2_trans_mutex_lock()
877 static bool bch2_trans_locked(struct btree_trans *trans) in bch2_trans_locked()
888 void bch2_trans_verify_locks(struct btree_trans *trans) in bch2_trans_verify_locks()