Lines Matching refs:send_ctx
78 struct send_ctx {
282 static void inconsistent_snapshot_error(struct send_ctx *sctx,
315 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
318 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
320 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
322 static int need_send_hole(struct send_ctx *sctx)
571 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len)
590 static int tlv_put_u##bits(struct send_ctx *sctx, \
599 static int tlv_put_string(struct send_ctx *sctx, u16 attr,
607 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr,
613 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr,
667 static int send_header(struct send_ctx *sctx)
681 static int begin_cmd(struct send_ctx *sctx, int cmd)
697 static int send_cmd(struct send_ctx *sctx)
723 static int send_rename(struct send_ctx *sctx,
748 static int send_link(struct send_ctx *sctx,
773 static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
796 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path)
1179 struct send_ctx *sctx;
1297 static int find_extent_clone(struct send_ctx *sctx,
1541 static int gen_unique_name(struct send_ctx *sctx,
1613 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen)
1679 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen)
1846 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen,
1918 static int did_overwrite_ref(struct send_ctx *sctx,
1991 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen)
2023 static int name_cache_insert(struct send_ctx *sctx,
2053 static void name_cache_delete(struct send_ctx *sctx,
2079 static struct name_cache_entry *name_cache_search(struct send_ctx *sctx,
2100 static void name_cache_used(struct send_ctx *sctx, struct name_cache_entry *nce)
2109 static void name_cache_clean_unused(struct send_ctx *sctx)
2124 static void name_cache_free(struct send_ctx *sctx)
2144 static int __get_cur_name_and_parent(struct send_ctx *sctx,
2280 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen,
2347 static int send_subvol_begin(struct send_ctx *sctx)
2435 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size)
2465 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode)
2495 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid)
2527 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen)
2590 static int send_create_inode(struct send_ctx *sctx, u64 ino)
2675 static int did_create_dir(struct send_ctx *sctx, u64 dir)
2743 static int send_create_inode_if_needed(struct send_ctx *sctx)
2830 static void free_recorded_refs(struct send_ctx *sctx)
2841 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen,
2862 static struct orphan_dir_info *add_orphan_dir_info(struct send_ctx *sctx,
2896 static struct orphan_dir_info *get_orphan_dir_info(struct send_ctx *sctx,
2918 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen)
2925 static void free_orphan_dir_info(struct send_ctx *sctx,
2939 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen,
3032 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino)
3039 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized)
3072 get_waiting_dir_move(struct send_ctx *sctx, u64 ino)
3089 static void free_waiting_dir_move(struct send_ctx *sctx,
3098 static int add_pending_dir_move(struct send_ctx *sctx,
3166 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx,
3184 static int path_loop(struct send_ctx *sctx, struct fs_path *name,
3226 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm)
3369 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m)
3379 static void tail_append_pending_moves(struct send_ctx *sctx,
3397 static int apply_children_dir_moves(struct send_ctx *sctx)
3468 static int wait_for_dest_dir_move(struct send_ctx *sctx,
3688 static int wait_for_parent_move(struct send_ctx *sctx,
3791 static int update_ref_path(struct send_ctx *sctx, struct recorded_ref *ref)
3862 static int refresh_ref_path(struct send_ctx *sctx, struct recorded_ref *ref)
3890 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move)
4358 struct send_ctx *sctx = ctx;
4390 struct send_ctx *sctx = ctx;
4399 struct send_ctx *sctx = ctx;
4404 static int record_new_ref(struct send_ctx *sctx)
4418 static int record_deleted_ref(struct send_ctx *sctx)
4496 struct send_ctx *sctx = ctx;
4519 struct send_ctx *sctx = ctx;
4536 static int record_changed_ref(struct send_ctx *sctx)
4558 static int process_all_refs(struct send_ctx *sctx,
4633 static int send_set_xattr(struct send_ctx *sctx,
4655 static int send_remove_xattr(struct send_ctx *sctx,
4681 struct send_ctx *sctx = ctx;
4726 struct send_ctx *sctx = ctx;
4744 static int process_new_xattr(struct send_ctx *sctx)
4754 static int process_deleted_xattr(struct send_ctx *sctx)
4824 struct send_ctx *sctx = ctx;
4854 struct send_ctx *sctx = ctx;
4867 static int process_changed_xattr(struct send_ctx *sctx)
4882 static int process_all_new_xattrs(struct send_ctx *sctx)
4938 static inline u64 max_send_read_size(const struct send_ctx *sctx)
4943 static int put_data_header(struct send_ctx *sctx, u32 len)
4956 static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len)
5038 static int send_write(struct send_ctx *sctx, u64 offset, u32 len)
5075 static int send_clone(struct send_ctx *sctx,
5148 static int send_update_extent(struct send_ctx *sctx,
5178 static int send_hole(struct send_ctx *sctx, u64 end)
5233 static int send_extent_data(struct send_ctx *sctx,
5262 static int send_capabilities(struct send_ctx *sctx)
5313 static int clone_range(struct send_ctx *sctx,
5581 static int send_write_or_clone(struct send_ctx *sctx,
5613 static int is_extent_unchanged(struct send_ctx *sctx,
5803 static int get_last_extent(struct send_ctx *sctx, u64 offset)
5833 static int range_is_hole_in_parent(struct send_ctx *sctx,
5899 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path,
5942 static int process_extent(struct send_ctx *sctx,
6002 static int process_all_extents(struct send_ctx *sctx)
6059 static int process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end,
6082 static int finish_inode_if_needed(struct send_ctx *sctx, int at_end)
6224 struct send_ctx *sctx;
6240 static int btrfs_unlink_all_paths(struct send_ctx *sctx)
6309 static int changed_inode(struct send_ctx *sctx,
6496 static int changed_ref(struct send_ctx *sctx,
6524 static int changed_xattr(struct send_ctx *sctx,
6551 static int changed_extent(struct send_ctx *sctx,
6581 static int dir_changed(struct send_ctx *sctx, u64 dir)
6599 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path,
6650 struct send_ctx *sctx = ctx;
6698 static int full_send_tree(struct send_ctx *sctx)
7107 static int send_subvol(struct send_ctx *sctx)
7152 static int ensure_commit_roots_uptodate(struct send_ctx *sctx)
7192 static int flush_delalloc_roots(struct send_ctx *sctx)
7244 struct send_ctx *sctx = NULL;
7292 sctx = kzalloc(sizeof(struct send_ctx), GFP_KERNEL);