Lines Matching refs:parent_root

95 	struct btrfs_root *parent_root;  member
285 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1543 if (!sctx->parent_root) { in gen_unique_name()
1549 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1595 if (!sctx->parent_root) { in get_cur_inode_state()
1598 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1824 if (!sctx->parent_root) in will_overwrite_ref()
1836 if (sctx->parent_root) { in will_overwrite_ref()
1837 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1849 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1864 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1896 if (!sctx->parent_root) in did_overwrite_ref()
1953 if (!sctx->parent_root) in did_overwrite_first_ref()
1960 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2157 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2271 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2306 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2349 if (parent_root) { in send_subvol_begin()
2370 if (parent_root) { in send_subvol_begin()
2371 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2373 parent_root->root_item.received_uuid); in send_subvol_begin()
2376 parent_root->root_item.uuid); in send_subvol_begin()
2378 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin()
2888 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3143 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3339 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3347 di = btrfs_match_dir_item_name(sctx->parent_root, path, in wait_for_dest_dir_move()
3367 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3469 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3482 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3638 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
3672 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
3682 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
3906 return record_ref(sctx->parent_root, num, dir, index, name, in __record_deleted_ref()
3928 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4009 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
4027 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
4050 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4085 root = sctx->parent_root; in process_all_refs()
4258 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4332 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4379 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
4980 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
5050 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
5190 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
5364 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
5369 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
5674 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
5850 if (sctx->parent_root) { in send_subvol()
5851 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, in send_subvol()
5888 if (sctx->parent_root && in ensure_commit_roots_uptodate()
5889 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
6095 if (arg->parent_root) { in btrfs_ioctl_send()
6096 key.objectid = arg->parent_root; in btrfs_ioctl_send()
6102 sctx->parent_root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_ioctl_send()
6103 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
6105 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
6109 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6110 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
6111 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
6112 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
6113 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6118 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
6205 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) in btrfs_ioctl_send()
6206 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()