Lines Matching defs:trans

121 static void bch2_btree_path_verify_cached(struct btree_trans *trans,  in bch2_btree_path_verify_cached()
138 static void bch2_btree_path_verify_level(struct btree_trans *trans, in bch2_btree_path_verify_level()
220 static void bch2_btree_path_verify(struct btree_trans *trans, in bch2_btree_path_verify()
238 void bch2_trans_verify_paths(struct btree_trans *trans) in bch2_trans_verify_paths()
249 struct btree_trans *trans = iter->trans; in bch2_btree_iter_verify() local
279 struct btree_trans *trans = iter->trans; in bch2_btree_iter_verify_ret() local
327 void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, in bch2_assert_pos_locked()
362 static inline void bch2_btree_path_verify_level(struct btree_trans *trans, in bch2_btree_path_verify_level()
364 static inline void bch2_btree_path_verify(struct btree_trans *trans, in bch2_btree_path_verify()
404 void bch2_btree_path_fix_key_modified(struct btree_trans *trans, in bch2_btree_path_fix_key_modified()
508 void bch2_btree_node_iter_fix(struct btree_trans *trans, in bch2_btree_node_iter_fix()
563 static inline struct bkey_s_c btree_path_level_peek(struct btree_trans *trans, in btree_path_level_peek()
577 static inline struct bkey_s_c btree_path_level_prev(struct btree_trans *trans, in btree_path_level_prev()
625 void bch2_btree_path_level_init(struct btree_trans *trans, in bch2_btree_path_level_init()
640 static void bch2_trans_revalidate_updates_in_node(struct btree_trans *trans, struct btree *b) in bch2_trans_revalidate_updates_in_node()
669 void bch2_trans_node_add(struct btree_trans *trans, in bch2_trans_node_add()
704 void bch2_trans_node_reinit_iter(struct btree_trans *trans, struct btree *b) in bch2_trans_node_reinit_iter()
717 static inline int btree_path_lock_root(struct btree_trans *trans, in btree_path_lock_root()
778 static int btree_path_prefetch(struct btree_trans *trans, struct btree_path *path) in btree_path_prefetch()
814 static int btree_path_prefetch_j(struct btree_trans *trans, struct btree_path *path, in btree_path_prefetch_j()
849 static noinline void btree_node_mem_ptr_set(struct btree_trans *trans, in btree_node_mem_ptr_set()
871 static noinline int btree_node_iter_and_journal_peek(struct btree_trans *trans, in btree_node_iter_and_journal_peek()
909 static __always_inline int btree_path_down(struct btree_trans *trans, in btree_path_down()
980 static int bch2_btree_path_traverse_all(struct btree_trans *trans) in bch2_btree_path_traverse_all()
1065 static inline bool btree_path_good_node(struct btree_trans *trans, in btree_path_good_node()
1074 static void btree_path_set_level_down(struct btree_trans *trans, in btree_path_set_level_down()
1090 static noinline unsigned __btree_path_up_until_good_node(struct btree_trans *trans, in __btree_path_up_until_good_node()
1113 static inline unsigned btree_path_up_until_good_node(struct btree_trans *trans, in btree_path_up_until_good_node()
1132 int bch2_btree_path_traverse_one(struct btree_trans *trans, in bch2_btree_path_traverse_one()
1222 static inline void btree_path_copy(struct btree_trans *trans, struct btree_path *dst, in btree_path_copy()
1239 static btree_path_idx_t btree_path_clone(struct btree_trans *trans, btree_path_idx_t src, in btree_path_clone()
1252 btree_path_idx_t __bch2_btree_path_make_mut(struct btree_trans *trans, in __bch2_btree_path_make_mut()
1264 __bch2_btree_path_set_pos(struct btree_trans *trans, in __bch2_btree_path_set_pos()
1323 static struct btree_path *have_path_at_pos(struct btree_trans *trans, struct btree_path *path) in have_path_at_pos()
1338 static struct btree_path *have_node_at_pos(struct btree_trans *trans, struct btree_path *path) in have_node_at_pos()
1353 static inline void __bch2_path_free(struct btree_trans *trans, btree_path_idx_t path) in __bch2_path_free()
1360 static bool bch2_btree_path_can_relock(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_can_relock()
1380 void bch2_path_put(struct btree_trans *trans, btree_path_idx_t path_idx, bool intent) in bch2_path_put()
1414 static void bch2_path_put_nokeep(struct btree_trans *trans, btree_path_idx_t path, in bch2_path_put_nokeep()
1423 void __noreturn bch2_trans_restart_error(struct btree_trans *trans, u32 restart_count) in bch2_trans_restart_error()
1430 void __noreturn bch2_trans_in_restart_error(struct btree_trans *trans) in bch2_trans_in_restart_error()
1437 void __noreturn bch2_trans_unlocked_error(struct btree_trans *trans) in bch2_trans_unlocked_error()
1444 void bch2_trans_updates_to_text(struct printbuf *buf, struct btree_trans *trans) in bch2_trans_updates_to_text()
1476 void bch2_dump_trans_updates(struct btree_trans *trans) in bch2_dump_trans_updates()
1485 static void bch2_btree_path_to_text_short(struct printbuf *out, struct btree_trans *trans, btree_pa… in bch2_btree_path_to_text_short()
1527 void bch2_btree_path_to_text(struct printbuf *out, struct btree_trans *trans, btree_path_idx_t path… in bch2_btree_path_to_text()
1553 void __bch2_trans_paths_to_text(struct printbuf *out, struct btree_trans *trans, in __bch2_trans_paths_to_text()
1568 void bch2_trans_paths_to_text(struct printbuf *out, struct btree_trans *trans) in bch2_trans_paths_to_text()
1574 void __bch2_dump_trans_paths_updates(struct btree_trans *trans, bool nosort) in __bch2_dump_trans_paths_updates()
1586 void bch2_dump_trans_paths_updates(struct btree_trans *trans) in bch2_dump_trans_paths_updates()
1592 static void bch2_trans_update_max_paths(struct btree_trans *trans) in bch2_trans_update_max_paths()
1615 int __bch2_btree_trans_too_many_iters(struct btree_trans *trans) in __bch2_btree_trans_too_many_iters()
1630 static noinline void btree_path_overflow(struct btree_trans *trans) in btree_path_overflow()
1636 static noinline void btree_paths_realloc(struct btree_trans *trans) in btree_paths_realloc()
1676 static inline btree_path_idx_t btree_path_alloc(struct btree_trans *trans, in btree_path_alloc()
1709 btree_path_idx_t bch2_path_get(struct btree_trans *trans, in bch2_path_get()
1790 btree_path_idx_t bch2_path_get_unlocked_mut(struct btree_trans *trans, in bch2_path_get_unlocked_mut()
1849 struct btree_trans *trans = iter->trans; in bch2_set_btree_iter_dontneed() local
1870 struct btree_trans *trans = iter->trans; in bch2_btree_iter_traverse() local
1894 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_node() local
1943 struct btree_trans *trans = iter->trans; in bch2_btree_iter_next_node() local
2053 void bch2_btree_trans_peek_prev_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_prev_updates()
2069 void bch2_btree_trans_peek_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_updates()
2086 void bch2_btree_trans_peek_slot_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_slot_updates()
2098 static struct bkey_i *bch2_btree_journal_peek(struct btree_trans *trans, in bch2_btree_journal_peek()
2112 struct bkey_s_c btree_trans_peek_slot_journal(struct btree_trans *trans, in btree_trans_peek_slot_journal()
2127 struct bkey_s_c btree_trans_peek_journal(struct btree_trans *trans, in btree_trans_peek_journal()
2151 struct btree_trans *trans = iter->trans; in btree_trans_peek_key_cache() local
2196 struct btree_trans *trans = iter->trans; in __bch2_btree_iter_peek() local
2292 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_upto() local
2463 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_prev() local
2605 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_slot() local
2758 static void btree_trans_verify_sorted_refs(struct btree_trans *trans) in btree_trans_verify_sorted_refs()
2778 static void btree_trans_verify_sorted(struct btree_trans *trans) in btree_trans_verify_sorted()
2795 static inline void btree_trans_verify_sorted_refs(struct btree_trans *trans) {} in btree_trans_verify_sorted_refs()
2796 static inline void btree_trans_verify_sorted(struct btree_trans *trans) {} in btree_trans_verify_sorted()
2799 void __bch2_btree_trans_sort_paths(struct btree_trans *trans) in __bch2_btree_trans_sort_paths()
2840 static inline void btree_path_list_remove(struct btree_trans *trans, in btree_path_list_remove()
2857 static inline void btree_path_list_add(struct btree_trans *trans, in btree_path_list_add()
2882 void bch2_trans_iter_exit(struct btree_trans *trans, struct btree_iter *iter) in bch2_trans_iter_exit()
2899 void bch2_trans_iter_init_outlined(struct btree_trans *trans, in bch2_trans_iter_init_outlined()
2909 void bch2_trans_node_iter_init(struct btree_trans *trans, in bch2_trans_node_iter_init()
2935 struct btree_trans *trans = src->trans; in bch2_trans_copy_iter() local
2948 void *__bch2_trans_kmalloc(struct btree_trans *trans, size_t size) in __bch2_trans_kmalloc()
3026 static inline void check_srcu_held_too_long(struct btree_trans *trans) in check_srcu_held_too_long()
3033 void bch2_trans_srcu_unlock(struct btree_trans *trans) in bch2_trans_srcu_unlock()
3050 static void bch2_trans_srcu_lock(struct btree_trans *trans) in bch2_trans_srcu_lock()
3069 u32 bch2_trans_begin(struct btree_trans *trans) in bch2_trans_begin()
3154 struct btree_trans *trans; in __bch2_trans_get() local
3237 static void check_btree_paths_leaked(struct btree_trans *trans) in check_btree_paths_leaked()
3260 void bch2_trans_put(struct btree_trans *trans) in bch2_trans_put()
3316 struct btree_trans *trans; in bch2_current_has_btree_trans() local
3349 void bch2_btree_trans_to_text(struct printbuf *out, struct btree_trans *trans) in bch2_btree_trans_to_text()
3416 struct btree_trans *trans; in bch2_fs_btree_iter_exit() local
3421 struct btree_trans *trans = in bch2_fs_btree_iter_exit() local
3490 struct btree_trans *trans = bch2_trans_get(c); in bch2_fs_btree_iter_init() local