Searched refs:clone_root (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/fs/btrfs/
H A Dsend.c73 struct clone_root { struct
96 struct clone_root *clone_roots;
1172 struct clone_root *cr = (struct clone_root *)elt; __clone_root_cmp_bsearch()
1183 struct clone_root *cr1 = (struct clone_root *)e1; __clone_root_cmp_sort()
1184 struct clone_root *cr2 = (struct clone_root *)e2; __clone_root_cmp_sort()
1200 struct clone_root *found; __iterate_backrefs()
1207 sizeof(struct clone_root), __iterate_backrefs()
1281 struct clone_root **found) find_extent_clone()
1293 struct clone_root *cur_clone_root; find_extent_clone()
4566 struct clone_root *clone_root) send_clone()
4572 verbose_printk("btrfs: send_clone offset=%llu, len=%d, clone_root=%llu, " send_clone()
4574 clone_root->root->objectid, clone_root->ino, send_clone()
4575 clone_root->offset); send_clone()
4593 if (clone_root->root == sctx->send_root) { send_clone()
4594 ret = get_inode_info(sctx->send_root, clone_root->ino, NULL, send_clone()
4598 ret = get_cur_path(sctx, clone_root->ino, gen, p); send_clone()
4600 ret = get_inode_path(clone_root->root, clone_root->ino, p); send_clone()
4614 if (!btrfs_is_empty_uuid(clone_root->root->root_item.received_uuid)) send_clone()
4616 clone_root->root->root_item.received_uuid); send_clone()
4619 clone_root->root->root_item.uuid); send_clone()
4621 le64_to_cpu(clone_root->root->root_item.ctransid)); send_clone()
4624 clone_root->offset); send_clone()
4726 struct clone_root *clone_root, clone_range()
4762 key.objectid = clone_root->ino; clone_range()
4764 key.offset = clone_root->offset; clone_range()
4765 ret = btrfs_search_slot(NULL, clone_root->root, &key, path, 0, 0); clone_range()
4770 if (key.objectid == clone_root->ino && clone_range()
4784 ret = btrfs_next_leaf(clone_root->root, path); clone_range()
4798 if (key.objectid != clone_root->ino || clone_range()
4811 if (key.offset + ext_len <= clone_root->offset) clone_range()
4814 if (key.offset > clone_root->offset) { clone_range()
4816 u64 hole_len = key.offset - clone_root->offset; clone_range()
4828 clone_root->offset += hole_len; clone_range()
4832 if (key.offset >= clone_root->offset + len) clone_range()
4839 ret = send_clone(sctx, offset, clone_len, clone_root); clone_range()
4850 clone_root->offset += clone_len; clone_range()
4868 struct clone_root *clone_root) send_write_or_clone()
4900 if (clone_root && IS_ALIGNED(offset + len, bs)) { send_write_or_clone()
4906 ret = clone_range(sctx, clone_root, disk_byte, data_offset, send_write_or_clone()
5184 struct clone_root *found_clone = NULL; process_extent()
5933 struct btrfs_root *clone_root; btrfs_ioctl_send() local
6040 sctx->clone_roots = vzalloc(sizeof(struct clone_root) * btrfs_ioctl_send()
6070 clone_root = btrfs_read_fs_root_no_name(fs_info, &key); btrfs_ioctl_send()
6071 if (IS_ERR(clone_root)) { btrfs_ioctl_send()
6073 ret = PTR_ERR(clone_root); btrfs_ioctl_send()
6076 spin_lock(&clone_root->root_item_lock); btrfs_ioctl_send()
6077 if (!btrfs_root_readonly(clone_root) || btrfs_ioctl_send()
6078 btrfs_root_dead(clone_root)) { btrfs_ioctl_send()
6079 spin_unlock(&clone_root->root_item_lock); btrfs_ioctl_send()
6084 clone_root->send_in_progress++; btrfs_ioctl_send()
6085 spin_unlock(&clone_root->root_item_lock); btrfs_ioctl_send()
6088 sctx->clone_roots[i].root = clone_root; btrfs_ioctl_send()
4564 send_clone(struct send_ctx *sctx, u64 offset, u32 len, struct clone_root *clone_root) send_clone() argument
4725 clone_range(struct send_ctx *sctx, struct clone_root *clone_root, const u64 disk_byte, u64 data_offset, u64 offset, u64 len) clone_range() argument
4865 send_write_or_clone(struct send_ctx *sctx, struct btrfs_path *path, struct btrfs_key *key, struct clone_root *clone_root) send_write_or_clone() argument

Completed in 92 milliseconds