Lines Matching refs:old_root
41 struct tree_mod_root old_root; member
389 int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root, in btrfs_tree_mod_log_insert_root() argument
393 struct btrfs_fs_info *fs_info = old_root->fs_info; in btrfs_tree_mod_log_insert_root()
403 if (log_removal && btrfs_header_level(old_root) > 0) { in btrfs_tree_mod_log_insert_root()
404 nritems = btrfs_header_nritems(old_root); in btrfs_tree_mod_log_insert_root()
412 tm_list[i] = alloc_tree_mod_elem(old_root, i, in btrfs_tree_mod_log_insert_root()
428 tm->old_root.logical = old_root->start; in btrfs_tree_mod_log_insert_root()
429 tm->old_root.level = btrfs_header_level(old_root); in btrfs_tree_mod_log_insert_root()
430 tm->generation = btrfs_header_generation(old_root); in btrfs_tree_mod_log_insert_root()
773 root_logical = tm->old_root.logical; in tree_mod_log_oldest_root()
979 struct tree_mod_root *old_root = NULL; in btrfs_get_old_root() local
990 old_root = &tm->old_root; in btrfs_get_old_root()
992 logical = old_root->logical; in btrfs_get_old_root()
993 level = old_root->level; in btrfs_get_old_root()
1000 if (old_root && tm && tm->op != BTRFS_MOD_LOG_KEY_REMOVE_WHILE_FREEING) { in btrfs_get_old_root()
1042 } else if (old_root) { in btrfs_get_old_root()
1055 if (old_root) { in btrfs_get_old_root()
1059 btrfs_set_header_level(eb, old_root->level); in btrfs_get_old_root()
1082 level = tm->old_root.level; in btrfs_old_root_level()