Lines Matching refs:parent_root
91 struct btrfs_root *parent_root; member
313 (sctx->parent_root ? in inconsistent_snapshot_error()
314 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
336 return (sctx->parent_root && !sctx->cur_inode_new && in need_send_hole()
1564 if (!sctx->parent_root) { in gen_unique_name()
1570 di = btrfs_lookup_dir_item(NULL, sctx->parent_root, in gen_unique_name()
1616 if (!sctx->parent_root) { in get_cur_inode_state()
1619 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen, in get_cur_inode_state()
1844 if (!sctx->parent_root) in will_overwrite_ref()
1856 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { in will_overwrite_ref()
1857 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, in will_overwrite_ref()
1869 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, in will_overwrite_ref()
1885 ret = get_inode_info(sctx->parent_root, other_inode, NULL, in will_overwrite_ref()
1917 if (!sctx->parent_root) in did_overwrite_ref()
1987 if (!sctx->parent_root) in did_overwrite_first_ref()
1994 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2187 ret = get_first_ref(sctx->parent_root, ino, in __get_cur_name_and_parent()
2301 ret = get_first_ref(sctx->parent_root, ino, in get_cur_path()
2336 struct btrfs_root *parent_root = sctx->parent_root; in send_subvol_begin() local
2379 if (parent_root) { in send_subvol_begin()
2400 if (parent_root) { in send_subvol_begin()
2401 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid)) in send_subvol_begin()
2403 parent_root->root_item.received_uuid); in send_subvol_begin()
2406 parent_root->root_item.uuid); in send_subvol_begin()
2408 btrfs_root_ctransid(&sctx->parent_root->root_item)); in send_subvol_begin()
2921 struct btrfs_root *root = sctx->parent_root; in can_rmdir()
3179 ret = get_first_ref(sctx->parent_root, ino, in path_loop()
3237 ret = get_first_ref(sctx->parent_root, pm->ino, in apply_dir_move()
3450 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info; in wait_for_dest_dir_move()
3471 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in wait_for_dest_dir_move()
3499 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL, in wait_for_dest_dir_move()
3706 ret = is_ancestor(sctx->parent_root, in wait_for_parent_move()
3720 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before, in wait_for_parent_move()
3736 ret = get_inode_info(sctx->parent_root, ino, NULL, in wait_for_parent_move()
3990 ret = is_first_ref(sctx->parent_root, in process_recorded_refs()
4048 ret = is_ancestor(sctx->parent_root, in process_recorded_refs()
4121 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) { in process_recorded_refs()
4131 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root && in process_recorded_refs()
4378 return record_ref(sctx->parent_root, dir, name, ctx, in __record_deleted_ref()
4400 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_deleted_ref()
4481 ret = find_iref(sctx->parent_root, sctx->right_path, in __record_changed_new_ref()
4499 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, in __record_changed_deleted_ref()
4522 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, in record_changed_ref()
4557 root = sctx->parent_root; in process_all_refs()
4734 return iterate_dir_item(sctx->parent_root, sctx->right_path, in process_deleted_xattr()
4806 ret = find_xattr(sctx->parent_root, sctx->right_path, in __process_changed_new_xattr()
4853 ret = iterate_dir_item(sctx->parent_root, sctx->right_path, in process_changed_xattr()
5627 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); in is_extent_unchanged()
5717 ret = btrfs_next_item(sctx->parent_root, path); in is_extent_unchanged()
5788 struct btrfs_root *root = sctx->parent_root; in range_is_hole_in_parent()
5901 if (sctx->parent_root && !sctx->cur_inode_new) { in process_extent()
6079 if (!sctx->parent_root || sctx->cur_inode_new) { in finish_inode_if_needed()
6088 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, in finish_inode_if_needed()
6181 return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx, in record_parent_ref()
6204 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); in btrfs_unlink_all_paths()
6216 ret = btrfs_next_leaf(sctx->parent_root, path); in btrfs_unlink_all_paths()
6231 ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, in btrfs_unlink_all_paths()
6540 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, in dir_changed()
7100 if (sctx->parent_root) { in send_subvol()
7101 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx); in send_subvol()
7137 if (sctx->parent_root && in ensure_commit_roots_uptodate()
7138 sctx->parent_root->node != sctx->parent_root->commit_root) in ensure_commit_roots_uptodate()
7173 struct btrfs_root *root = sctx->parent_root; in flush_delalloc_roots()
7381 if (arg->parent_root) { in btrfs_ioctl_send()
7382 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root, in btrfs_ioctl_send()
7384 if (IS_ERR(sctx->parent_root)) { in btrfs_ioctl_send()
7385 ret = PTR_ERR(sctx->parent_root); in btrfs_ioctl_send()
7389 spin_lock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7390 sctx->parent_root->send_in_progress++; in btrfs_ioctl_send()
7391 if (!btrfs_root_readonly(sctx->parent_root) || in btrfs_ioctl_send()
7392 btrfs_root_dead(sctx->parent_root)) { in btrfs_ioctl_send()
7393 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7397 if (sctx->parent_root->dedupe_in_progress) { in btrfs_ioctl_send()
7398 dedupe_in_progress_warn(sctx->parent_root); in btrfs_ioctl_send()
7399 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7403 spin_unlock(&sctx->parent_root->root_item_lock); in btrfs_ioctl_send()
7509 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) { in btrfs_ioctl_send()
7510 btrfs_root_dec_send_in_progress(sctx->parent_root); in btrfs_ioctl_send()
7511 btrfs_put_root(sctx->parent_root); in btrfs_ioctl_send()