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
281 struct btree_trans *trans = iter->trans; in bch2_btree_iter_verify_ret() local
329 void bch2_assert_pos_locked(struct btree_trans *trans, enum btree_id id, in bch2_assert_pos_locked()
364 static inline void bch2_btree_path_verify_level(struct btree_trans *trans, in bch2_btree_path_verify_level()
366 static inline void bch2_btree_path_verify(struct btree_trans *trans, in bch2_btree_path_verify()
406 void bch2_btree_path_fix_key_modified(struct btree_trans *trans, in bch2_btree_path_fix_key_modified()
510 void bch2_btree_node_iter_fix(struct btree_trans *trans, in bch2_btree_node_iter_fix()
565 static inline struct bkey_s_c btree_path_level_peek(struct btree_trans *trans, in btree_path_level_peek()
579 static inline struct bkey_s_c btree_path_level_prev(struct btree_trans *trans, in btree_path_level_prev()
627 void bch2_btree_path_level_init(struct btree_trans *trans, in bch2_btree_path_level_init()
642 static void bch2_trans_revalidate_updates_in_node(struct btree_trans *trans, struct btree *b) in bch2_trans_revalidate_updates_in_node()
671 void bch2_trans_node_add(struct btree_trans *trans, in bch2_trans_node_add()
702 void bch2_trans_node_drop(struct btree_trans *trans, in bch2_trans_node_drop()
719 void bch2_trans_node_reinit_iter(struct btree_trans *trans, struct btree *b) in bch2_trans_node_reinit_iter()
732 static inline int btree_path_lock_root(struct btree_trans *trans, in btree_path_lock_root()
796 static int btree_path_prefetch(struct btree_trans *trans, struct btree_path *path) in btree_path_prefetch()
832 static int btree_path_prefetch_j(struct btree_trans *trans, struct btree_path *path, in btree_path_prefetch_j()
869 static noinline void btree_node_mem_ptr_set(struct btree_trans *trans, in btree_node_mem_ptr_set()
891 static noinline int btree_node_iter_and_journal_peek(struct btree_trans *trans, in btree_node_iter_and_journal_peek()
929 static __always_inline int btree_path_down(struct btree_trans *trans, in btree_path_down()
1000 static int bch2_btree_path_traverse_all(struct btree_trans *trans) in bch2_btree_path_traverse_all()
1085 static inline bool btree_path_good_node(struct btree_trans *trans, in btree_path_good_node()
1094 static void btree_path_set_level_down(struct btree_trans *trans, in btree_path_set_level_down()
1110 static noinline unsigned __btree_path_up_until_good_node(struct btree_trans *trans, in __btree_path_up_until_good_node()
1133 static inline unsigned btree_path_up_until_good_node(struct btree_trans *trans, in btree_path_up_until_good_node()
1152 int bch2_btree_path_traverse_one(struct btree_trans *trans, in bch2_btree_path_traverse_one()
1242 static inline void btree_path_copy(struct btree_trans *trans, struct btree_path *dst, in btree_path_copy()
1259 static btree_path_idx_t btree_path_clone(struct btree_trans *trans, btree_path_idx_t src, in btree_path_clone()
1272 btree_path_idx_t __bch2_btree_path_make_mut(struct btree_trans *trans, in __bch2_btree_path_make_mut()
1284 __bch2_btree_path_set_pos(struct btree_trans *trans, in __bch2_btree_path_set_pos()
1343 static struct btree_path *have_path_at_pos(struct btree_trans *trans, struct btree_path *path) in have_path_at_pos()
1358 static struct btree_path *have_node_at_pos(struct btree_trans *trans, struct btree_path *path) in have_node_at_pos()
1373 static inline void __bch2_path_free(struct btree_trans *trans, btree_path_idx_t path) in __bch2_path_free()
1380 static bool bch2_btree_path_can_relock(struct btree_trans *trans, struct btree_path *path) in bch2_btree_path_can_relock()
1400 void bch2_path_put(struct btree_trans *trans, btree_path_idx_t path_idx, bool intent) in bch2_path_put()
1434 static void bch2_path_put_nokeep(struct btree_trans *trans, btree_path_idx_t path, in bch2_path_put_nokeep()
1443 void __noreturn bch2_trans_restart_error(struct btree_trans *trans, u32 restart_count) in bch2_trans_restart_error()
1450 static void __noreturn bch2_trans_in_restart_error(struct btree_trans *trans) in bch2_trans_in_restart_error()
1465 void __noreturn bch2_trans_unlocked_or_in_restart_error(struct btree_trans *trans) in bch2_trans_unlocked_or_in_restart_error()
1478 void bch2_trans_updates_to_text(struct printbuf *buf, struct btree_trans *trans) in bch2_trans_updates_to_text()
1511 void bch2_dump_trans_updates(struct btree_trans *trans) in bch2_dump_trans_updates()
1520 static void bch2_btree_path_to_text_short(struct printbuf *out, struct btree_trans *trans, btree_pa… in bch2_btree_path_to_text_short()
1562 void bch2_btree_path_to_text(struct printbuf *out, struct btree_trans *trans, btree_path_idx_t path… in bch2_btree_path_to_text()
1588 void __bch2_trans_paths_to_text(struct printbuf *out, struct btree_trans *trans, in __bch2_trans_paths_to_text()
1603 void bch2_trans_paths_to_text(struct printbuf *out, struct btree_trans *trans) in bch2_trans_paths_to_text()
1609 void __bch2_dump_trans_paths_updates(struct btree_trans *trans, bool nosort) in __bch2_dump_trans_paths_updates()
1621 void bch2_dump_trans_paths_updates(struct btree_trans *trans) in bch2_dump_trans_paths_updates()
1627 static void bch2_trans_update_max_paths(struct btree_trans *trans) in bch2_trans_update_max_paths()
1650 int __bch2_btree_trans_too_many_iters(struct btree_trans *trans) in __bch2_btree_trans_too_many_iters()
1665 static noinline void btree_path_overflow(struct btree_trans *trans) in btree_path_overflow()
1671 static noinline void btree_paths_realloc(struct btree_trans *trans) in btree_paths_realloc()
1711 static inline btree_path_idx_t btree_path_alloc(struct btree_trans *trans, in btree_path_alloc()
1744 btree_path_idx_t bch2_path_get(struct btree_trans *trans, in bch2_path_get()
1824 btree_path_idx_t bch2_path_get_unlocked_mut(struct btree_trans *trans, in bch2_path_get_unlocked_mut()
1882 struct btree_trans *trans = iter->trans; in bch2_set_btree_iter_dontneed() local
1903 struct btree_trans *trans = iter->trans; in bch2_btree_iter_traverse() local
1927 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_node() local
1976 struct btree_trans *trans = iter->trans; in bch2_btree_iter_next_node() local
2086 void bch2_btree_trans_peek_prev_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_prev_updates()
2102 void bch2_btree_trans_peek_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_updates()
2119 void bch2_btree_trans_peek_slot_updates(struct btree_trans *trans, struct btree_iter *iter, in bch2_btree_trans_peek_slot_updates()
2131 static struct bkey_i *bch2_btree_journal_peek(struct btree_trans *trans, in bch2_btree_journal_peek()
2145 struct bkey_s_c btree_trans_peek_slot_journal(struct btree_trans *trans, in btree_trans_peek_slot_journal()
2160 void btree_trans_peek_journal(struct btree_trans *trans, in btree_trans_peek_journal()
2174 static struct bkey_i *bch2_btree_journal_peek_prev(struct btree_trans *trans, in bch2_btree_journal_peek_prev()
2188 void btree_trans_peek_prev_journal(struct btree_trans *trans, in btree_trans_peek_prev_journal()
2210 struct btree_trans *trans = iter->trans; in btree_trans_peek_key_cache() local
2258 struct btree_trans *trans = iter->trans; in __bch2_btree_iter_peek() local
2350 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_max() local
2519 struct btree_trans *trans = iter->trans; in __bch2_btree_iter_peek_prev() local
2622 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_prev_min() local
2754 struct btree_trans *trans = iter->trans; in bch2_btree_iter_peek_slot() local
2922 static void btree_trans_verify_sorted_refs(struct btree_trans *trans) in btree_trans_verify_sorted_refs()
2942 static void btree_trans_verify_sorted(struct btree_trans *trans) in btree_trans_verify_sorted()
2959 static inline void btree_trans_verify_sorted_refs(struct btree_trans *trans) {} in btree_trans_verify_sorted_refs()
2960 static inline void btree_trans_verify_sorted(struct btree_trans *trans) {} in btree_trans_verify_sorted()
2963 void __bch2_btree_trans_sort_paths(struct btree_trans *trans) in __bch2_btree_trans_sort_paths()
3004 static inline void btree_path_list_remove(struct btree_trans *trans, in btree_path_list_remove()
3021 static inline void btree_path_list_add(struct btree_trans *trans, in btree_path_list_add()
3046 void bch2_trans_iter_exit(struct btree_trans *trans, struct btree_iter *iter) in bch2_trans_iter_exit()
3063 void bch2_trans_iter_init_outlined(struct btree_trans *trans, in bch2_trans_iter_init_outlined()
3073 void bch2_trans_node_iter_init(struct btree_trans *trans, in bch2_trans_node_iter_init()
3102 struct btree_trans *trans = src->trans; in bch2_trans_copy_iter() local
3115 void *__bch2_trans_kmalloc(struct btree_trans *trans, size_t size) in __bch2_trans_kmalloc()
3198 static inline void check_srcu_held_too_long(struct btree_trans *trans) in check_srcu_held_too_long()
3205 void bch2_trans_srcu_unlock(struct btree_trans *trans) in bch2_trans_srcu_unlock()
3222 static void bch2_trans_srcu_lock(struct btree_trans *trans) in bch2_trans_srcu_lock()
3241 u32 bch2_trans_begin(struct btree_trans *trans) in bch2_trans_begin()
3334 struct btree_trans *trans; in __bch2_trans_get() local
3417 static void check_btree_paths_leaked(struct btree_trans *trans) in check_btree_paths_leaked()
3440 void bch2_trans_put(struct btree_trans *trans) in bch2_trans_put()
3503 struct btree_trans *trans; in bch2_current_has_btree_trans() local
3537 void bch2_btree_trans_to_text(struct printbuf *out, struct btree_trans *trans) in bch2_btree_trans_to_text()
3604 struct btree_trans *trans; in bch2_fs_btree_iter_exit() local
3609 struct btree_trans *trans = in bch2_fs_btree_iter_exit() local
3678 struct btree_trans *trans = bch2_trans_get(c); in bch2_fs_btree_iter_init() local