Lines Matching refs:parent_root
153 struct btrfs_root *parent_root; member
397 (sctx->parent_root ? in inconsistent_snapshot_error()
398 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
421 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1833 if (!sctx->parent_root) { in gen_unique_name()
1839 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1889 if (!sctx->parent_root) { in get_cur_inode_state()
1892 ret = get_inode_info(sctx->parent_root, ino, &info); in get_cur_inode_state()
2117 if (!sctx->parent_root) in will_overwrite_ref()
2132 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID && in will_overwrite_ref()
2136 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
2150 ret = get_inode_info(sctx->parent_root, other_inode, &info); in will_overwrite_ref()
2180 if (!sctx->parent_root) in did_overwrite_ref()
2248 if (!sctx->parent_root) in did_overwrite_first_ref()
2255 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2343 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2458 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2493 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2536 if (parent_root) { in send_subvol_begin()
2557 if (parent_root) { in send_subvol_begin()
2558 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2560 parent_root->root_item.received_uuid); in send_subvol_begin()
2563 parent_root->root_item.uuid); in send_subvol_begin()
2565 btrfs_root_ctransid(&sctx->parent_root->root_item)); in send_subvol_begin()
3181 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3478 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3536 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3748 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3769 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3797 ret = get_inode_gen(sctx->parent_root, di_key.objectid, &left_gen); in wait_for_dest_dir_move()
3990 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
4004 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
4020 ret = get_inode_gen(sctx->parent_root, ino, &parent_ino_gen); in wait_for_parent_move()
4272 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4326 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4400 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4410 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4723 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen); in record_deleted_ref_if_needed()
4761 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4780 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4814 root = sctx->parent_root; in process_all_refs()
4975 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
5045 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
5092 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
6222 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
6312 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
6383 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
6496 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6659 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6668 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, &info); in finish_inode_if_needed()
7130 ret = get_inode_gen(sctx->parent_root, dir, &orig_gen); in dir_changed()
7306 (root == sctx->parent_root ? "parent" : "send"), in search_key_again()
7578 ret = search_key_again(sctx, sctx->parent_root, right_path, right_key); in restart_after_relocation()
7612 root_level = btrfs_header_level(sctx->parent_root->commit_root); in restart_after_relocation()
7935 if (sctx->parent_root) { in send_subvol()
7936 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7972 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7973 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
8008 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
8255 if (arg->parent_root) { in btrfs_ioctl_send()
8256 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
8258 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
8259 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
8263 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8264 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
8265 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
8266 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
8267 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8271 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
8272 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
8273 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8277 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8376 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
8377 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
8378 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()