Lines Matching refs:parent_root

89 	struct btrfs_root *parent_root;  member
311 (sctx->parent_root ? in inconsistent_snapshot_error()
312 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
324 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1575 if (!sctx->parent_root) { in gen_unique_name()
1581 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1627 if (!sctx->parent_root) { in get_cur_inode_state()
1630 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1855 if (!sctx->parent_root) in will_overwrite_ref()
1867 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { in will_overwrite_ref()
1868 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1880 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1896 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1928 if (!sctx->parent_root) in did_overwrite_ref()
1998 if (!sctx->parent_root) in did_overwrite_first_ref()
2005 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2202 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2316 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2351 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2394 if (parent_root) { in send_subvol_begin()
2415 if (parent_root) { in send_subvol_begin()
2416 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2418 parent_root->root_item.received_uuid); in send_subvol_begin()
2421 parent_root->root_item.uuid); in send_subvol_begin()
2423 le64_to_cpu(sctx->parent_root->root_item.ctransid)); in send_subvol_begin()
2943 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3201 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3259 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3472 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3493 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3521 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3728 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3742 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3758 ret = get_inode_info(sctx->parent_root, ino, NULL, in wait_for_parent_move()
4012 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4070 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4143 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4153 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4400 return record_ref(sctx->parent_root, dir, name, ctx, in __record_deleted_ref()
4422 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4503 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
4521 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
4544 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4579 root = sctx->parent_root; in process_all_refs()
4756 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4828 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4875 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
5678 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
5768 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
5839 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
5952 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6130 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6139 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
6232 return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx, in record_parent_ref()
6255 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in btrfs_unlink_all_paths()
6267 ret = btrfs_next_leaf(sctx->parent_root, path); in btrfs_unlink_all_paths()
6282 ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, in btrfs_unlink_all_paths()
6591 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
7121 if (sctx->parent_root) { in send_subvol()
7122 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7158 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7159 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
7194 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
7391 if (arg->parent_root) { in btrfs_ioctl_send()
7392 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
7394 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
7395 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
7399 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7400 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
7401 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
7402 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
7403 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7407 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
7408 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
7409 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7413 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7521 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
7522 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
7523 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()