Lines Matching refs:parent_root
95 struct btrfs_root *parent_root; member
284 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1536 if (!sctx->parent_root) { in gen_unique_name()
1542 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1588 if (!sctx->parent_root) { in get_cur_inode_state()
1591 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1817 if (!sctx->parent_root) in will_overwrite_ref()
1829 if (sctx->parent_root) { in will_overwrite_ref()
1830 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1842 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1857 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1889 if (!sctx->parent_root) in did_overwrite_ref()
1939 if (!sctx->parent_root) in did_overwrite_first_ref()
1946 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2143 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2251 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2286 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2329 if (parent_root) { in send_subvol_begin()
2344 if (parent_root) { in send_subvol_begin()
2346 sctx->parent_root->root_item.uuid); in send_subvol_begin()
2348 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin()
2858 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3112 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3308 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3316 di = btrfs_match_dir_item_name(sctx->parent_root, path, in wait_for_dest_dir_move()
3336 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3406 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3562 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
3596 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
3826 return record_ref(sctx->parent_root, num, dir, index, name, in __record_deleted_ref()
3848 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
3929 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
3947 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
3970 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4005 root = sctx->parent_root; in process_all_refs()
4178 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4252 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4299 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
4731 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
4801 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
4941 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
5115 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
5120 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
5425 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
5601 if (sctx->parent_root) { in send_subvol()
5602 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
5639 if (sctx->parent_root && in ensure_commit_roots_uptodate()
5640 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
5846 if (arg->parent_root) { in btrfs_ioctl_send()
5847 key.objectid = arg->parent_root; in btrfs_ioctl_send()
5853 sctx->parent_root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_ioctl_send()
5854 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
5856 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
5860 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
5861 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
5862 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
5863 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
5864 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
5869 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
5956 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) in btrfs_ioctl_send()
5957 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()