Lines Matching refs:parent_root
89 struct btrfs_root *parent_root;
311 (sctx->parent_root ?
312 sctx->parent_root->root_key.objectid : 0));
324 return (sctx->parent_root && !sctx->cur_inode_new &&
1539 * send_root and parent_root. This is used to generate names for orphan inodes.
1575 if (!sctx->parent_root) {
1581 di = btrfs_lookup_dir_item(NULL, sctx->parent_root,
1627 if (!sctx->parent_root) {
1630 ret = get_inode_info(sctx->parent_root, ino, NULL, &right_gen,
1855 if (!sctx->parent_root)
1867 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) {
1868 ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL,
1880 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len,
1896 ret = get_inode_info(sctx->parent_root, other_inode, NULL,
1928 if (!sctx->parent_root)
1998 if (!sctx->parent_root)
2005 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name);
2196 * send_root or parent_root for ref lookup.
2202 ret = get_first_ref(sctx->parent_root, ino,
2260 * in send_root. If not, we continue with the parent as found in parent_root.
2316 ret = get_first_ref(sctx->parent_root, ino,
2351 struct btrfs_root *parent_root = sctx->parent_root;
2394 if (parent_root) {
2415 if (parent_root) {
2416 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid))
2418 parent_root->root_item.received_uuid);
2421 parent_root->root_item.uuid);
2423 le64_to_cpu(sctx->parent_root->root_item.ctransid));
2943 struct btrfs_root *root = sctx->parent_root;
3201 ret = get_first_ref(sctx->parent_root, ino,
3259 ret = get_first_ref(sctx->parent_root, pm->ino,
3472 struct btrfs_fs_info *fs_info = sctx->parent_root->fs_info;
3493 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0);
3521 ret = get_inode_info(sctx->parent_root, di_key.objectid, NULL,
3728 ret = is_ancestor(sctx->parent_root,
3742 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before,
3758 ret = get_inode_info(sctx->parent_root, ino, NULL,
4012 ret = is_first_ref(sctx->parent_root,
4070 ret = is_ancestor(sctx->parent_root,
4143 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) {
4153 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root &&
4400 return record_ref(sctx->parent_root, dir, name, ctx,
4422 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path,
4503 ret = find_iref(sctx->parent_root, sctx->right_path,
4521 ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL,
4544 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path,
4579 root = sctx->parent_root;
4756 return iterate_dir_item(sctx->parent_root, sctx->right_path,
4828 ret = find_xattr(sctx->parent_root, sctx->right_path,
4875 ret = iterate_dir_item(sctx->parent_root, sctx->right_path,
5678 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0);
5768 ret = btrfs_next_item(sctx->parent_root, path);
5839 struct btrfs_root *root = sctx->parent_root;
5952 if (sctx->parent_root && !sctx->cur_inode_new) {
6130 if (!sctx->parent_root || sctx->cur_inode_new) {
6139 ret = get_inode_info(sctx->parent_root, sctx->cur_ino,
6232 return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx,
6255 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0);
6267 ret = btrfs_next_leaf(sctx->parent_root, path);
6282 ret = iterate_inode_ref(sctx->parent_root, path, &key, 1,
6591 ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL,
7121 if (sctx->parent_root) {
7122 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx);
7158 if (sctx->parent_root &&
7159 sctx->parent_root->node != sctx->parent_root->commit_root)
7194 struct btrfs_root *root = sctx->parent_root;
7391 if (arg->parent_root) {
7392 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root,
7394 if (IS_ERR(sctx->parent_root)) {
7395 ret = PTR_ERR(sctx->parent_root);
7399 spin_lock(&sctx->parent_root->root_item_lock);
7400 sctx->parent_root->send_in_progress++;
7401 if (!btrfs_root_readonly(sctx->parent_root) ||
7402 btrfs_root_dead(sctx->parent_root)) {
7403 spin_unlock(&sctx->parent_root->root_item_lock);
7407 if (sctx->parent_root->dedupe_in_progress) {
7408 dedupe_in_progress_warn(sctx->parent_root);
7409 spin_unlock(&sctx->parent_root->root_item_lock);
7413 spin_unlock(&sctx->parent_root->root_item_lock);
7521 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) {
7522 btrfs_root_dec_send_in_progress(sctx->parent_root);
7523 btrfs_put_root(sctx->parent_root);