Lines Matching refs:parent_root

80 	struct btrfs_root *parent_root;  member
293 (sctx->parent_root ? in inconsistent_snapshot_error()
294 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
306 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1551 if (!sctx->parent_root) { in gen_unique_name()
1557 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1603 if (!sctx->parent_root) { in get_cur_inode_state()
1606 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1835 if (!sctx->parent_root) in will_overwrite_ref()
1847 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { in will_overwrite_ref()
1848 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1860 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1876 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1908 if (!sctx->parent_root) in did_overwrite_ref()
1978 if (!sctx->parent_root) in did_overwrite_first_ref()
1985 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2182 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2296 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2331 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2374 if (parent_root) { in send_subvol_begin()
2395 if (parent_root) { in send_subvol_begin()
2396 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2398 parent_root->root_item.received_uuid); in send_subvol_begin()
2401 parent_root->root_item.uuid); in send_subvol_begin()
2403 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin()
2916 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3172 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3228 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3435 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3456 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3484 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3691 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3705 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3721 ret = get_inode_info(sctx->parent_root, ino, NULL, in wait_for_parent_move()
3905 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
3957 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
3976 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
3986 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4233 return record_ref(sctx->parent_root, dir, name, ctx, in __record_deleted_ref()
4255 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4336 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
4354 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
4377 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4412 root = sctx->parent_root; in process_all_refs()
4585 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4657 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4704 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
5352 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
5442 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
5527 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
5664 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
5842 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
5851 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
5940 return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx, in record_parent_ref()
5963 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in btrfs_unlink_all_paths()
5975 ret = btrfs_next_leaf(sctx->parent_root, path); in btrfs_unlink_all_paths()
5990 ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, in btrfs_unlink_all_paths()
6346 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
6517 if (sctx->parent_root) { in send_subvol()
6518 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
6555 if (sctx->parent_root && in ensure_commit_roots_uptodate()
6556 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
6764 if (arg->parent_root) { in btrfs_ioctl_send()
6765 key.objectid = arg->parent_root; in btrfs_ioctl_send()
6771 sctx->parent_root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_ioctl_send()
6772 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
6774 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
6778 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6779 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
6780 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
6781 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
6782 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6787 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6874 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) in btrfs_ioctl_send()
6875 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()