Lines Matching refs:parent_root

98 	struct btrfs_root *parent_root;  member
341 (sctx->parent_root ? in inconsistent_snapshot_error()
342 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
365 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1617 if (!sctx->parent_root) { in gen_unique_name()
1623 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1670 if (!sctx->parent_root) { in get_cur_inode_state()
1673 ret = get_inode_info(sctx->parent_root, ino, &info); in get_cur_inode_state()
1895 if (!sctx->parent_root) in will_overwrite_ref()
1907 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { in will_overwrite_ref()
1908 ret = get_inode_gen(sctx->parent_root, dir, &gen); in will_overwrite_ref()
1919 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1935 ret = get_inode_info(sctx->parent_root, other_inode, &info); in will_overwrite_ref()
1967 if (!sctx->parent_root) in did_overwrite_ref()
2035 if (!sctx->parent_root) in did_overwrite_first_ref()
2042 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2235 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2349 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2384 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2427 if (parent_root) { in send_subvol_begin()
2448 if (parent_root) { in send_subvol_begin()
2449 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2451 parent_root->root_item.received_uuid); in send_subvol_begin()
2454 parent_root->root_item.uuid); in send_subvol_begin()
2456 btrfs_root_ctransid(&sctx->parent_root->root_item)); in send_subvol_begin()
2989 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3235 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3293 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3505 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3526 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3554 ret = get_inode_gen(sctx->parent_root, di_key.objectid, &left_gen); in wait_for_dest_dir_move()
3747 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3761 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3777 ret = get_inode_gen(sctx->parent_root, ino, &parent_ino_gen); in wait_for_parent_move()
4029 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4087 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4160 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4170 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4486 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen); in record_deleted_ref_if_needed()
4524 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4543 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4577 root = sctx->parent_root; in process_all_refs()
4738 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4808 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4855 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
5985 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
6075 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
6146 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
6259 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6422 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6431 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, &info); in finish_inode_if_needed()
6879 ret = get_inode_gen(sctx->parent_root, dir, &orig_gen); in dir_changed()
7055 (root == sctx->parent_root ? "parent" : "send"), in search_key_again()
7327 ret = search_key_again(sctx, sctx->parent_root, right_path, right_key); in restart_after_relocation()
7361 root_level = btrfs_header_level(sctx->parent_root->commit_root); in restart_after_relocation()
7684 if (sctx->parent_root) { in send_subvol()
7685 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7721 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7722 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
7757 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
7994 if (arg->parent_root) { in btrfs_ioctl_send()
7995 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
7997 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
7998 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
8002 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8003 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
8004 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
8005 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
8006 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8010 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
8011 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
8012 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8016 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8108 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
8109 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
8110 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()