Lines Matching refs:_trans

128 #define trans_for_each_path_from(_trans, _path, _idx, _start)		\  argument
130 (_path = __trans_next_path((_trans), &_idx)); \
133 #define trans_for_each_path(_trans, _path, _idx) \ argument
134 trans_for_each_path_from(_trans, _path, _idx, 1)
156 #define trans_for_each_path_idx_inorder(_trans, _iter) \ argument
159 _iter.sorted_idx < (_trans)->nr_sorted); \
167 #define trans_for_each_path_inorder(_trans, _path, _iter) \ argument
170 _path = (_trans)->paths + _iter.path_idx, \
171 _iter.sorted_idx < (_trans)->nr_sorted); \
174 #define trans_for_each_path_inorder_reverse(_trans, _path, _i) \ argument
176 ((_path) = (_trans)->paths + trans->sorted[_i]), (_i) >= 0;\
199 #define trans_for_each_path_with_node(_trans, _b, _path, _iter) \ argument
201 (_path = __trans_next_path_with_node((_trans), (_b), &_iter));\
592 #define bch2_bkey_get_iter_typed(_trans, _iter, _btree_id, _pos, _flags, _type)\ argument
593 bkey_s_c_to_##_type(__bch2_bkey_get_iter(_trans, _iter, \
628 #define bch2_bkey_get_val_typed(_trans, _btree_id, _pos, _flags, _type, _val)\ argument
629 __bch2_bkey_get_val_typed(_trans, _btree_id, _pos, _flags, \
636 #define __for_each_btree_node(_trans, _iter, _btree_id, _start, \ argument
639 bch2_trans_begin((_trans)); \
642 bch2_trans_node_iter_init((_trans), &_iter, (_btree_id), \
646 _ret3 = lockrestart_do((_trans), ({ \
653 lockrestart_do((_trans), \
657 bch2_trans_iter_exit((_trans), &(_iter)); \
661 #define for_each_btree_node(_trans, _iter, _btree_id, _start, \ argument
663 __for_each_btree_node(_trans, _iter, _btree_id, _start, \
707 #define lockrestart_do(_trans, _do) \ argument
713 _restart_count = bch2_trans_begin(_trans); \
720 bch2_trans_verify_not_restarted(_trans, _restart_count);\
733 #define nested_lockrestart_do(_trans, _do) \ argument
738 _restart_count = _orig_restart_count = (_trans)->restart_count; \
741 _restart_count = bch2_trans_begin(_trans); \
744 bch2_trans_verify_not_restarted(_trans, _restart_count);\
746 _ret2 ?: trans_was_restarted(_trans, _restart_count); \
749 #define for_each_btree_key_upto_continue(_trans, _iter, \ argument
756 _ret3 = lockrestart_do(_trans, ({ \
766 bch2_trans_iter_exit((_trans), &(_iter)); \
770 #define for_each_btree_key_continue(_trans, _iter, _flags, _k, _do) \ argument
771 for_each_btree_key_upto_continue(_trans, _iter, SPOS_MAX, _flags, _k, _do)
773 #define for_each_btree_key_upto(_trans, _iter, _btree_id, \ argument
779 bch2_trans_iter_init((_trans), &(_iter), (_btree_id), \
782 for_each_btree_key_upto_continue(_trans, _iter, _end, _flags, _k, _do);\
785 #define for_each_btree_key(_trans, _iter, _btree_id, \ argument
787 for_each_btree_key_upto(_trans, _iter, _btree_id, _start, \
790 #define for_each_btree_key_reverse(_trans, _iter, _btree_id, \ argument
797 bch2_trans_iter_init((_trans), &(_iter), (_btree_id), \
801 _ret3 = lockrestart_do(_trans, ({ \
811 bch2_trans_iter_exit((_trans), &(_iter)); \
815 #define for_each_btree_key_commit(_trans, _iter, _btree_id, \ argument
819 for_each_btree_key(_trans, _iter, _btree_id, _start, _iter_flags, _k,\
820 (_do) ?: bch2_trans_commit(_trans, (_disk_res),\
823 #define for_each_btree_key_reverse_commit(_trans, _iter, _btree_id, \ argument
827 for_each_btree_key_reverse(_trans, _iter, _btree_id, _start, _iter_flags, _k,\
828 (_do) ?: bch2_trans_commit(_trans, (_disk_res),\
831 #define for_each_btree_key_upto_commit(_trans, _iter, _btree_id, \ argument
835 for_each_btree_key_upto(_trans, _iter, _btree_id, _start, _end, _iter_flags, _k,\
836 (_do) ?: bch2_trans_commit(_trans, (_disk_res),\
841 #define for_each_btree_key_upto_norestart(_trans, _iter, _btree_id, \ argument
843 for (bch2_trans_iter_init((_trans), &(_iter), (_btree_id), \
855 #define for_each_btree_key_norestart(_trans, _iter, _btree_id, \ argument
857 for_each_btree_key_upto_norestart(_trans, _iter, _btree_id, _start,\
860 #define for_each_btree_key_reverse_norestart(_trans, _iter, _btree_id, \ argument
862 for (bch2_trans_iter_init((_trans), &(_iter), (_btree_id), \
876 #define drop_locks_do(_trans, _do) \ argument
878 bch2_trans_unlock(_trans); \
879 (_do) ?: bch2_trans_relock(_trans); \
882 #define allocate_dropping_locks_errcode(_trans, _do) \ argument
889 _ret = drop_locks_do(_trans, _do); \
894 #define allocate_dropping_locks(_trans, _ret, _do) \ argument
902 _ret = drop_locks_do(_trans, ((_p = _do), 0)); \