Lines Matching defs:trans
18 struct six_lock_count bch2_btree_node_lock_counts(struct btree_trans *trans, in bch2_btree_node_lock_counts()
45 void bch2_btree_node_unlock_write(struct btree_trans *trans, in bch2_btree_node_unlock_write()
57 struct btree_trans *trans; member
112 static void __lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in __lock_graph_down()
121 static void lock_graph_down(struct lock_graph *g, struct btree_trans *trans) in lock_graph_down()
142 static void trace_would_deadlock(struct lock_graph *g, struct btree_trans *trans) in trace_would_deadlock()
171 static int btree_trans_abort_preference(struct btree_trans *trans) in btree_trans_abort_preference()
213 struct btree_trans *trans = i->trans; in break_cycle() local
237 static int lock_graph_descend(struct lock_graph *g, struct btree_trans *trans, in lock_graph_descend()
274 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock()
399 struct btree_trans *trans = p; in bch2_six_check_for_deadlock() local
404 int __bch2_btree_node_lock_write(struct btree_trans *trans, struct btree_path *path, in __bch2_btree_node_lock_write()
428 void bch2_btree_node_lock_write_nofail(struct btree_trans *trans, in bch2_btree_node_lock_write_nofail()
438 static inline bool btree_path_get_locks(struct btree_trans *trans, in btree_path_get_locks()
487 bool __bch2_btree_node_relock(struct btree_trans *trans, in __bch2_btree_node_relock()
511 bool bch2_btree_node_upgrade(struct btree_trans *trans, in bch2_btree_node_upgrade()
575 int bch2_btree_path_relock_intent(struct btree_trans *trans, in bch2_btree_path_relock_intent()
595 bool bch2_btree_path_relock_norestart(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_relock_norestart()
604 int __bch2_btree_path_relock(struct btree_trans *trans, in __bch2_btree_path_relock()
615 bool bch2_btree_path_upgrade_noupgrade_sibs(struct btree_trans *trans, in bch2_btree_path_upgrade_noupgrade_sibs()
629 bool __bch2_btree_path_upgrade(struct btree_trans *trans, in __bch2_btree_path_upgrade()
675 void __bch2_btree_path_downgrade(struct btree_trans *trans, in __bch2_btree_path_downgrade()
708 void bch2_trans_downgrade(struct btree_trans *trans) in bch2_trans_downgrade()
721 static inline void __bch2_trans_unlock(struct btree_trans *trans) in __bch2_trans_unlock()
730 static noinline __cold int bch2_trans_relock_fail(struct btree_trans *trans, struct btree_path *pat… in bch2_trans_relock_fail()
765 static inline int __bch2_trans_relock(struct btree_trans *trans, bool trace) in __bch2_trans_relock()
791 int bch2_trans_relock(struct btree_trans *trans) in bch2_trans_relock()
796 int bch2_trans_relock_notrace(struct btree_trans *trans) in bch2_trans_relock_notrace()
801 void bch2_trans_unlock_noassert(struct btree_trans *trans) in bch2_trans_unlock_noassert()
808 void bch2_trans_unlock(struct btree_trans *trans) in bch2_trans_unlock()
815 void bch2_trans_unlock_long(struct btree_trans *trans) in bch2_trans_unlock_long()
821 int __bch2_trans_mutex_lock(struct btree_trans *trans, in __bch2_trans_mutex_lock()
862 static bool bch2_trans_locked(struct btree_trans *trans) in bch2_trans_locked()
873 void bch2_trans_verify_locks(struct btree_trans *trans) in bch2_trans_verify_locks()