Lines Matching refs:parent_root
89 struct btrfs_root *parent_root; member
310 (sctx->parent_root ? in inconsistent_snapshot_error()
311 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
323 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1574 if (!sctx->parent_root) { in gen_unique_name()
1580 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1626 if (!sctx->parent_root) { in get_cur_inode_state()
1629 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1854 if (!sctx->parent_root) in will_overwrite_ref()
1866 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { in will_overwrite_ref()
1867 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1879 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1895 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1927 if (!sctx->parent_root) in did_overwrite_ref()
1997 if (!sctx->parent_root) in did_overwrite_first_ref()
2004 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2201 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2315 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2350 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2393 if (parent_root) { in send_subvol_begin()
2414 if (parent_root) { in send_subvol_begin()
2415 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2417 parent_root->root_item.received_uuid); in send_subvol_begin()
2420 parent_root->root_item.uuid); in send_subvol_begin()
2422 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin()
2935 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3191 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3247 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3459 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3480 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3508 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3715 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3729 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3745 ret = get_inode_info(sctx->parent_root, ino, NULL, in wait_for_parent_move()
3999 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4057 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4119 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4129 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4376 return record_ref(sctx->parent_root, dir, name, ctx, in __record_deleted_ref()
4398 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4479 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
4497 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
4520 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4555 root = sctx->parent_root; in process_all_refs()
4732 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4804 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4851 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
5613 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
5703 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
5774 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
5887 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6065 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6074 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
6167 return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx, in record_parent_ref()
6190 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in btrfs_unlink_all_paths()
6202 ret = btrfs_next_leaf(sctx->parent_root, path); in btrfs_unlink_all_paths()
6217 ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, in btrfs_unlink_all_paths()
6526 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
7056 if (sctx->parent_root) { in send_subvol()
7057 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7093 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7094 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
7129 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
7326 if (arg->parent_root) { in btrfs_ioctl_send()
7327 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
7329 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
7330 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
7334 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7335 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
7336 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
7337 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
7338 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7342 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
7343 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
7344 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7348 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7456 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
7457 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
7458 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()