Lines Matching refs:send_root
94 struct btrfs_root *send_root; member
1208 if (found->root == bctx->sctx->send_root && in __iterate_backrefs()
1231 if (found->root == bctx->sctx->send_root) { in __iterate_backrefs()
1337 down_read(&sctx->send_root->fs_info->commit_root_sem); in find_extent_clone()
1338 ret = extent_from_logical(sctx->send_root->fs_info, disk_byte, tmp_path, in find_extent_clone()
1340 up_read(&sctx->send_root->fs_info->commit_root_sem); in find_extent_clone()
1382 ret = iterate_extent_inodes(sctx->send_root->fs_info, in find_extent_clone()
1392 btrfs_err(sctx->send_root->fs_info, "did not find backref in " in find_extent_clone()
1412 else if (sctx->clone_roots[i].root == sctx->send_root) in find_extent_clone()
1522 di = btrfs_lookup_dir_item(NULL, sctx->send_root, in gen_unique_name()
1582 ret = get_inode_info(sctx->send_root, ino, NULL, &left_gen, NULL, NULL, in get_cur_inode_state()
1897 ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, in did_overwrite_ref()
1907 ret = get_inode_info(sctx->send_root, ow_inode, NULL, &gen, NULL, NULL, in did_overwrite_ref()
2002 btrfs_err(sctx->send_root->fs_info, in name_cache_delete()
2140 ret = get_first_ref(sctx->send_root, ino, in __get_cur_name_and_parent()
2285 struct btrfs_root *send_root = sctx->send_root; in send_subvol_begin() local
2304 key.objectid = send_root->objectid; in send_subvol_begin()
2308 ret = btrfs_search_slot_for_read(send_root->fs_info->tree_root, in send_subvol_begin()
2320 key.objectid != send_root->objectid) { in send_subvol_begin()
2341 sctx->send_root->root_item.uuid); in send_subvol_begin()
2343 le64_to_cpu(sctx->send_root->root_item.ctransid)); in send_subvol_begin()
2473 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in send_utimes()
2524 ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, in send_create_inode()
2566 ret = read_symlink(sctx->send_root, ino, p); in send_create_inode()
2612 ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); in did_create_dir()
2620 ret = btrfs_next_leaf(sctx->send_root, path); in did_create_dir()
3340 ret = get_inode_info(sctx->send_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3402 ret = get_first_ref(sctx->send_root, ino, &parent_ino_after, in wait_for_parent_move()
3816 return record_ref(sctx->send_root, num, dir, index, name, in __record_new_ref()
3834 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_new_ref()
3924 ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, in __record_changed_new_ref()
3952 ret = find_iref(sctx->send_root, sctx->left_path, sctx->cmp_key, in __record_changed_deleted_ref()
3966 ret = iterate_inode_ref(sctx->send_root, sctx->left_path, in record_changed_ref()
4002 root = sctx->send_root; in process_all_refs()
4008 btrfs_err(sctx->send_root->fs_info, in process_all_refs()
4168 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_new_xattr()
4280 ret = find_xattr(sctx->send_root, sctx->left_path, sctx->cmp_key, in __process_changed_deleted_xattr()
4295 ret = iterate_dir_item(sctx->send_root, sctx->left_path, in process_changed_xattr()
4320 root = sctx->send_root; in process_all_new_xattrs()
4365 struct btrfs_root *root = sctx->send_root; in fill_read_buf()
4513 if (clone_root->root == sctx->send_root) { in send_clone()
4514 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, in send_clone()
4619 u64 bs = sctx->send_root->fs_info->sb->s_blocksize; in send_write_or_clone()
4839 struct btrfs_root *root = sctx->send_root; in get_last_extent()
4870 sctx->send_root->sectorsize); in get_last_extent()
4905 sctx->send_root->sectorsize); in maybe_send_hole()
5001 root = sctx->send_root; in process_all_extents()
5110 ret = get_inode_info(sctx->send_root, sctx->cur_ino, NULL, NULL, in finish_inode_if_needed()
5420 ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, in dir_changed()
5535 struct btrfs_root *send_root = sctx->send_root; in full_send_tree() local
5550 ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); in full_send_tree()
5561 ret = changed_cb(send_root, NULL, path, NULL, in full_send_tree()
5570 ret = btrfs_next_item(send_root, path); in full_send_tree()
5602 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
5649 return btrfs_end_transaction(trans, sctx->send_root); in ensure_commit_roots_uptodate()
5656 trans = btrfs_join_transaction(sctx->send_root); in ensure_commit_roots_uptodate()
5662 return btrfs_commit_transaction(trans, sctx->send_root); in ensure_commit_roots_uptodate()
5683 struct btrfs_root *send_root; in btrfs_ioctl_send() local
5698 send_root = BTRFS_I(file_inode(mnt_file))->root; in btrfs_ioctl_send()
5699 fs_info = send_root->fs_info; in btrfs_ioctl_send()
5705 spin_lock(&send_root->root_item_lock); in btrfs_ioctl_send()
5706 send_root->send_in_progress++; in btrfs_ioctl_send()
5707 spin_unlock(&send_root->root_item_lock); in btrfs_ioctl_send()
5713 WARN_ON(send_root->orphan_cleanup_state != ORPHAN_CLEANUP_DONE); in btrfs_ioctl_send()
5719 if (!btrfs_root_readonly(send_root)) { in btrfs_ioctl_send()
5762 sctx->send_root = send_root; in btrfs_ioctl_send()
5767 if (btrfs_root_dead(sctx->send_root)) { in btrfs_ioctl_send()
5879 sctx->clone_roots[sctx->clone_roots_cnt++].root = sctx->send_root; in btrfs_ioctl_send()
5954 btrfs_root_dec_send_in_progress(send_root); in btrfs_ioctl_send()