Lines Matching refs:parent_root

153 	struct btrfs_root *parent_root;
397 (sctx->parent_root ?
398 sctx->parent_root->root_key.objectid : 0));
421 return (sctx->parent_root && !sctx->cur_inode_new &&
1805 * send_root and parent_root. This is used to generate names for orphan inodes.
1845 if (!sctx->parent_root) {
1851 di = btrfs_lookup_dir_item(NULL, sctx->parent_root,
1901 if (!sctx->parent_root) {
1904 ret = get_inode_info(sctx->parent_root, ino, &info);
2129 if (!sctx->parent_root)
2144 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID &&
2148 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len,
2162 ret = get_inode_info(sctx->parent_root, other_inode, &info);
2192 if (!sctx->parent_root)
2260 if (!sctx->parent_root)
2267 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name);
2349 * send_root or parent_root for ref lookup.
2355 ret = get_first_ref(sctx->parent_root, ino,
2414 * in send_root. If not, we continue with the parent as found in parent_root.
2470 ret = get_first_ref(sctx->parent_root, ino,
2505 struct btrfs_root *parent_root = sctx->parent_root;
2548 if (parent_root) {
2569 if (parent_root) {
2570 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid))
2572 parent_root->root_item.received_uuid);
2575 parent_root->root_item.uuid);
2577 btrfs_root_ctransid(&sctx->parent_root->root_item));
3193 struct btrfs_root *root = sctx->parent_root;
3490 ret = get_first_ref(sctx->parent_root, ino,
3548 ret = get_first_ref(sctx->parent_root, pm->ino,
3759 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info;
3780 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0);
3808 ret = get_inode_gen(sctx->parent_root, di_key.objectid, &left_gen);
4001 ret = is_ancestor(sctx->parent_root,
4015 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before,
4031 ret = get_inode_gen(sctx->parent_root, ino, &parent_ino_gen);
4282 ret = is_first_ref(sctx->parent_root,
4336 ret = is_ancestor(sctx->parent_root,
4410 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) {
4420 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root &&
4733 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen);
4771 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path,
4790 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path,
4824 root = sctx->parent_root;
4985 return iterate_dir_item(sctx->parent_root, sctx->right_path,
5055 ret = find_xattr(sctx->parent_root, sctx->right_path,
5102 ret = iterate_dir_item(sctx->parent_root, sctx->right_path,
6232 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0);
6322 ret = btrfs_next_item(sctx->parent_root, path);
6393 struct btrfs_root *root = sctx->parent_root;
6506 if (sctx->parent_root && !sctx->cur_inode_new) {
6669 if (!sctx->parent_root || sctx->cur_inode_new) {
6678 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, &info);
7149 ret = get_inode_gen(sctx->parent_root, dir, &orig_gen);
7325 (root == sctx->parent_root ? "parent" : "send"),
7597 ret = search_key_again(sctx, sctx->parent_root, right_path, right_key);
7631 root_level = btrfs_header_level(sctx->parent_root->commit_root);
7954 if (sctx->parent_root) {
7955 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx);
7991 if (sctx->parent_root &&
7992 sctx->parent_root->node != sctx->parent_root->commit_root)
8027 struct btrfs_root *root = sctx->parent_root;
8274 if (arg->parent_root) {
8275 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root,
8277 if (IS_ERR(sctx->parent_root)) {
8278 ret = PTR_ERR(sctx->parent_root);
8282 spin_lock(&sctx->parent_root->root_item_lock);
8283 sctx->parent_root->send_in_progress++;
8284 if (!btrfs_root_readonly(sctx->parent_root) ||
8285 btrfs_root_dead(sctx->parent_root)) {
8286 spin_unlock(&sctx->parent_root->root_item_lock);
8290 if (sctx->parent_root->dedupe_in_progress) {
8291 dedupe_in_progress_warn(sctx->parent_root);
8292 spin_unlock(&sctx->parent_root->root_item_lock);
8296 spin_unlock(&sctx->parent_root->root_item_lock);
8395 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) {
8396 btrfs_root_dec_send_in_progress(sctx->parent_root);
8397 btrfs_put_root(sctx->parent_root);