Lines Matching refs:tree_mod_elem

15 struct tree_mod_elem {  struct
80 struct tree_mod_elem *tm; in btrfs_put_tree_mod_seq()
116 tm = rb_entry(node, struct tree_mod_elem, node); in btrfs_put_tree_mod_seq()
134 struct tree_mod_elem *tm) in tree_mod_log_insert()
139 struct tree_mod_elem *cur; in tree_mod_log_insert()
148 cur = rb_entry(*new, struct tree_mod_elem, node); in tree_mod_log_insert()
201 static struct tree_mod_elem *alloc_tree_mod_elem(const struct extent_buffer *eb, in alloc_tree_mod_elem()
205 struct tree_mod_elem *tm; in alloc_tree_mod_elem()
227 struct tree_mod_elem *tm; in btrfs_tree_mod_log_insert_key()
261 static struct tree_mod_elem *tree_mod_log_alloc_move(const struct extent_buffer *eb, in tree_mod_log_alloc_move()
265 struct tree_mod_elem *tm; in tree_mod_log_alloc_move()
285 struct tree_mod_elem *tm = NULL; in btrfs_tree_mod_log_insert_move()
286 struct tree_mod_elem **tm_list = NULL; in btrfs_tree_mod_log_insert_move()
294 tm_list = kcalloc(nr_items, sizeof(struct tree_mod_elem *), GFP_NOFS); in btrfs_tree_mod_log_insert_move()
370 struct tree_mod_elem **tm_list, in tree_mod_log_free_eb()
394 struct tree_mod_elem *tm = NULL; in btrfs_tree_mod_log_insert_root()
395 struct tree_mod_elem **tm_list = NULL; in btrfs_tree_mod_log_insert_root()
405 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), in btrfs_tree_mod_log_insert_root()
473 static struct tree_mod_elem *__tree_mod_log_search(struct btrfs_fs_info *fs_info, in __tree_mod_log_search()
479 struct tree_mod_elem *cur = NULL; in __tree_mod_log_search()
480 struct tree_mod_elem *found = NULL; in __tree_mod_log_search()
486 cur = rb_entry(node, struct tree_mod_elem, node); in __tree_mod_log_search()
520 static struct tree_mod_elem *tree_mod_log_search_oldest(struct btrfs_fs_info *fs_info, in tree_mod_log_search_oldest()
531 static struct tree_mod_elem *tree_mod_log_search(struct btrfs_fs_info *fs_info, in tree_mod_log_search()
545 struct tree_mod_elem **tm_list = NULL; in btrfs_tree_mod_log_eb_copy()
546 struct tree_mod_elem **tm_list_add = NULL; in btrfs_tree_mod_log_eb_copy()
547 struct tree_mod_elem **tm_list_rem = NULL; in btrfs_tree_mod_log_eb_copy()
550 struct tree_mod_elem *dst_move_tm = NULL; in btrfs_tree_mod_log_eb_copy()
551 struct tree_mod_elem *src_move_tm = NULL; in btrfs_tree_mod_log_eb_copy()
561 tm_list = kcalloc(nr_items * 2, sizeof(struct tree_mod_elem *), in btrfs_tree_mod_log_eb_copy()
671 struct tree_mod_elem **tm_list = NULL; in btrfs_tree_mod_log_free_eb()
680 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), GFP_NOFS); in btrfs_tree_mod_log_free_eb()
734 static struct tree_mod_elem *tree_mod_log_oldest_root(struct extent_buffer *eb_root, in tree_mod_log_oldest_root()
737 struct tree_mod_elem *tm; in tree_mod_log_oldest_root()
738 struct tree_mod_elem *found = NULL; in tree_mod_log_oldest_root()
793 struct tree_mod_elem *first_tm) in tree_mod_log_rewind()
797 struct tree_mod_elem *tm = first_tm; in tree_mod_log_rewind()
896 tm = rb_entry(next, struct tree_mod_elem, node); in tree_mod_log_rewind()
916 struct tree_mod_elem *tm; in btrfs_tree_mod_log_rewind()
973 struct tree_mod_elem *tm; in btrfs_get_old_root()
1016 struct tree_mod_elem *tm2; in btrfs_get_old_root()
1075 struct tree_mod_elem *tm; in btrfs_old_root_level()