Lines Matching defs:parent_root

157 	struct btrfs_root *parent_root;
405 (sctx->parent_root ? btrfs_root_id(sctx->parent_root) : 0));
428 return (sctx->parent_root && !sctx->cur_inode_new &&
1763 * send_root and parent_root. This is used to generate names for orphan inodes.
1801 if (!sctx->parent_root) {
1806 di = btrfs_lookup_dir_item(NULL, sctx->parent_root,
1851 if (!sctx->parent_root) {
1854 ret = get_inode_info(sctx->parent_root, ino, &info);
2063 if (!sctx->parent_root)
2078 if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID &&
2082 ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len,
2096 ret = get_inode_info(sctx->parent_root, other_inode, &info);
2126 if (!sctx->parent_root)
2194 if (!sctx->parent_root)
2201 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name);
2278 * send_root or parent_root for ref lookup.
2284 ret = get_first_ref(sctx->parent_root, ino,
2340 * in send_root. If not, we continue with the parent as found in parent_root.
2402 ret = get_first_ref(sctx->parent_root, ino,
2440 struct btrfs_root *parent_root = sctx->parent_root;
2478 if (parent_root) {
2499 if (parent_root) {
2500 if (!btrfs_is_empty_uuid(parent_root->root_item.received_uuid))
2502 parent_root->root_item.received_uuid);
2505 parent_root->root_item.uuid);
2507 btrfs_root_ctransid(&sctx->parent_root->root_item));
3123 struct btrfs_root *root = sctx->parent_root;
3420 ret = get_first_ref(sctx->parent_root, ino,
3476 ret = get_first_ref(sctx->parent_root, pm->ino,
3704 ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0);
3726 ret = get_inode_gen(sctx->parent_root, di_key.objectid, &left_gen);
3914 ret = is_ancestor(sctx->parent_root,
3928 ret = get_first_ref(sctx->parent_root, ino, &parent_ino_before,
3944 ret = get_inode_gen(sctx->parent_root, ino, &parent_ino_gen);
4257 ret = is_first_ref(sctx->parent_root,
4311 ret = is_ancestor(sctx->parent_root,
4386 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root) {
4396 if (S_ISDIR(sctx->cur_inode_mode) && sctx->parent_root &&
4694 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen);
4730 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, sctx->cmp_key,
4746 ret = iterate_inode_ref(sctx->parent_root, sctx->right_path, sctx->cmp_key,
4778 root = sctx->parent_root;
4909 return iterate_dir_item(sctx->parent_root, sctx->right_path,
4983 ret = find_xattr(sctx->parent_root, sctx->right_path,
5030 return iterate_dir_item(sctx->parent_root, sctx->right_path,
6084 if (sctx->parent_root != NULL) {
6173 ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0);
6251 ret = btrfs_next_item(sctx->parent_root, path);
6316 struct btrfs_root *root = sctx->parent_root;
6492 if (sctx->parent_root && !sctx->cur_inode_new) {
6646 if (!sctx->parent_root || sctx->cur_inode_new) {
6655 ret = get_inode_info(sctx->parent_root, sctx->cur_ino, &info);
7124 ret = get_inode_gen(sctx->parent_root, dir, &orig_gen);
7297 (root == sctx->parent_root ? "parent" : "send"),
7565 ret = search_key_again(sctx, sctx->parent_root, right_path, right_key);
7599 root_level = btrfs_header_level(sctx->parent_root->commit_root);
7920 if (sctx->parent_root) {
7921 ret = btrfs_compare_trees(sctx->send_root, sctx->parent_root, sctx);
7953 struct btrfs_root *root = sctx->parent_root;
7977 struct btrfs_root *root = sctx->parent_root;
8217 if (arg->parent_root) {
8218 sctx->parent_root = btrfs_get_fs_root(fs_info, arg->parent_root,
8220 if (IS_ERR(sctx->parent_root)) {
8221 ret = PTR_ERR(sctx->parent_root);
8225 spin_lock(&sctx->parent_root->root_item_lock);
8226 sctx->parent_root->send_in_progress++;
8227 if (!btrfs_root_readonly(sctx->parent_root) ||
8228 btrfs_root_dead(sctx->parent_root)) {
8229 spin_unlock(&sctx->parent_root->root_item_lock);
8233 if (sctx->parent_root->dedupe_in_progress) {
8234 dedupe_in_progress_warn(sctx->parent_root);
8235 spin_unlock(&sctx->parent_root->root_item_lock);
8239 spin_unlock(&sctx->parent_root->root_item_lock);
8338 if (sctx && !IS_ERR_OR_NULL(sctx->parent_root)) {
8339 btrfs_root_dec_send_in_progress(sctx->parent_root);
8340 btrfs_put_root(sctx->parent_root);