Lines Matching defs:trans
20 struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans, in bch2_btree_node_lock_counts()
47 void bch2_btree_node_unlock_write(struct btree_trans *trans, in bch2_btree_node_unlock_write()
59 struct btree_trans *trans; member
120 static void __lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in __lock_graph_down()
129 static void lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in lock_graph_down()
155 static void trace_would_deadlock(struct lock_graph *g, struct btree_trans *trans) in trace_would_deadlock()
186 static int btree_trans_abort_preference(struct btree_trans *trans) in btree_trans_abort_preference()
205 struct btree_trans *trans = i->trans; in break_cycle_fail() local
258 static int lock_graph_descend(struct lock_graph *g, struct btree_trans *trans, in lock_graph_descend()
293 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock()
417 struct btree_trans *trans = p; in bch2_six_check_for_deadlock() local
422 int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *path, in __bch2_btree_node_lock_write()
446 void bch2_btree_node_lock_write_nofail(struct btree_trans *trans, in bch2_btree_node_lock_write_nofail()
456 static int btree_path_get_locks(struct btree_trans *trans, in btree_path_get_locks()
515 bool __bch2_btree_node_relock(struct btree_trans *trans, in __bch2_btree_node_relock()
539 bool bch2_btree_node_upgrade(struct btree_trans *trans, in bch2_btree_node_upgrade()
589 int bch2_btree_path_relock_intent(struct btree_trans *trans, in bch2_btree_path_relock_intent()
609 bool bch2_btree_path_relock_norestart(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_relock_norestart()
616 int __bch2_btree_path_relock(struct btree_trans *trans, in __bch2_btree_path_relock()
627 bool __bch2_btree_path_upgrade_norestart(struct btree_trans *trans, in __bch2_btree_path_upgrade_norestart()
645 int __bch2_btree_path_upgrade(struct btree_trans *trans, in __bch2_btree_path_upgrade()
718 void __bch2_btree_path_downgrade(struct btree_trans *trans, in __bch2_btree_path_downgrade()
751 void bch2_trans_downgrade(struct btree_trans *trans) in bch2_trans_downgrade()
764 static inline void __bch2_trans_unlock(struct btree_trans *trans) in __bch2_trans_unlock()
773 static noinline __cold void bch2_trans_relock_fail(struct btree_trans *trans, struct btree_path *pa… in bch2_trans_relock_fail()
809 static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace, ulong ip) in __bch2_trans_relock()
839 int bch2_trans_relock(struct btree_trans *trans) in bch2_trans_relock()
844 int bch2_trans_relock_notrace(struct btree_trans *trans) in bch2_trans_relock_notrace()
849 void bch2_trans_unlock(struct btree_trans *trans) in bch2_trans_unlock()
856 void bch2_trans_unlock_long(struct btree_trans *trans) in bch2_trans_unlock_long()
862 void bch2_trans_unlock_write(struct btree_trans *trans) in bch2_trans_unlock_write()
873 int __bch2_trans_mutex_lock(struct btree_trans *trans, in __bch2_trans_mutex_lock()
885 void __bch2_btree_path_verify_locks(struct btree_trans *trans, struct btree_path *path) in __bch2_btree_path_verify_locks()
913 static bool bch2_trans_locked(struct btree_trans *trans) in bch2_trans_locked()
924 void __bch2_trans_verify_locks(struct btree_trans *trans) in __bch2_trans_verify_locks()