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()
1845 if (!sctx->parent_root) { in gen_unique_name()
1851 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1901 if (!sctx->parent_root) { in get_cur_inode_state()
1904 ret = get_inode_info(sctx->parent_root, ino, &info); in get_cur_inode_state()
2129 if (!sctx->parent_root) in will_overwrite_ref()
2144 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID && in will_overwrite_ref()
2148 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
2162 ret = get_inode_info(sctx->parent_root, other_inode, &info); in will_overwrite_ref()
2192 if (!sctx->parent_root) in did_overwrite_ref()
2260 if (!sctx->parent_root) in did_overwrite_first_ref()
2267 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2355 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2470 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2505 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2548 if (parent_root) { in send_subvol_begin()
2569 if (parent_root) { in send_subvol_begin()
2570 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2572 parent_root->root_item.received_uuid); in send_subvol_begin()
2575 parent_root->root_item.uuid); in send_subvol_begin()
2577 btrfs_root_ctransid(&sctx->parent_root->root_item)); in send_subvol_begin()
3193 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3490 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3548 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3759 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3780 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3808 ret = get_inode_gen(sctx->parent_root, di_key.objectid, &left_gen); in wait_for_dest_dir_move()
4001 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
4015 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
4031 ret = get_inode_gen(sctx->parent_root, ino, &parent_ino_gen); in wait_for_parent_move()
4282 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4336 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4410 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4420 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4733 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen); in record_deleted_ref_if_needed()
4771 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4790 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4824 root = sctx->parent_root; in process_all_refs()
4985 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
5055 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
5102 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
6232 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
6322 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
6393 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
6506 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6669 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6678 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, &info); in finish_inode_if_needed()
7140 ret = get_inode_gen(sctx->parent_root, dir, &orig_gen); in dir_changed()
7316 (root == sctx->parent_root ? "parent" : "send"), in search_key_again()
7588 ret = search_key_again(sctx, sctx->parent_root, right_path, right_key); in restart_after_relocation()
7622 root_level = btrfs_header_level(sctx->parent_root->commit_root); in restart_after_relocation()
7945 if (sctx->parent_root) { in send_subvol()
7946 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7982 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7983 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
8018 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
8265 if (arg->parent_root) { in btrfs_ioctl_send()
8266 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
8268 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
8269 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
8273 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8274 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
8275 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
8276 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
8277 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8281 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
8282 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
8283 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8287 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
8386 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
8387 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
8388 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()