Lines Matching refs:send_ctx

136 struct send_ctx {
368 static void inconsistent_snapshot_error(struct send_ctx *sctx,
402 static bool proto_cmd_ok(const struct send_ctx *sctx, int cmd)
412 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
415 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
417 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
419 static int need_send_hole(struct send_ctx *sctx)
659 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len)
681 static int tlv_put_u##bits(struct send_ctx *sctx, \
692 static int tlv_put_string(struct send_ctx *sctx, u16 attr,
700 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr,
706 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr,
760 static int send_header(struct send_ctx *sctx)
773 static int begin_cmd(struct send_ctx *sctx, int cmd)
789 static int send_cmd(struct send_ctx *sctx)
814 static int send_rename(struct send_ctx *sctx,
839 static int send_link(struct send_ctx *sctx,
864 static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
887 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path)
1279 struct send_ctx *sctx;
1403 struct send_ctx *sctx = bctx->sctx;
1443 struct send_ctx *sctx = bctx->sctx;
1516 const struct send_ctx *sctx = bctx->sctx;
1569 static int find_extent_clone(struct send_ctx *sctx,
1807 static int gen_unique_name(struct send_ctx *sctx,
1883 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen,
1955 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen,
2120 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen,
2182 static int did_overwrite_ref(struct send_ctx *sctx,
2253 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen)
2279 static inline struct name_cache_entry *name_cache_search(struct send_ctx *sctx,
2299 static int __get_cur_name_and_parent(struct send_ctx *sctx,
2434 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen,
2501 static int send_subvol_begin(struct send_ctx *sctx)
2589 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size)
2619 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode)
2649 static int send_fileattr(struct send_ctx *sctx, u64 ino, u64 gen, u64 fileattr)
2682 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid)
2714 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen)
2783 static int cache_dir_utimes(struct send_ctx *sctx, u64 dir, u64 gen)
2810 static int trim_dir_utimes_cache(struct send_ctx *sctx)
2835 static int send_create_inode(struct send_ctx *sctx, u64 ino)
2918 static void cache_dir_created(struct send_ctx *sctx, u64 dir)
2940 static int did_create_dir(struct send_ctx *sctx, u64 dir)
2994 static int send_create_inode_if_needed(struct send_ctx *sctx)
3079 static void free_recorded_refs(struct send_ctx *sctx)
3090 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen,
3111 static struct orphan_dir_info *add_orphan_dir_info(struct send_ctx *sctx,
3146 static struct orphan_dir_info *get_orphan_dir_info(struct send_ctx *sctx,
3168 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen)
3175 static void free_orphan_dir_info(struct send_ctx *sctx,
3189 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen)
3321 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino)
3328 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized)
3361 get_waiting_dir_move(struct send_ctx *sctx, u64 ino)
3378 static void free_waiting_dir_move(struct send_ctx *sctx,
3387 static int add_pending_dir_move(struct send_ctx *sctx,
3455 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx,
3473 static int path_loop(struct send_ctx *sctx, struct fs_path *name,
3515 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm)
3657 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m)
3667 static void tail_append_pending_moves(struct send_ctx *sctx,
3685 static int apply_children_dir_moves(struct send_ctx *sctx)
3755 static int wait_for_dest_dir_move(struct send_ctx *sctx,
3961 static int wait_for_parent_move(struct send_ctx *sctx,
4062 static int update_ref_path(struct send_ctx *sctx, struct recorded_ref *ref)
4133 static int refresh_ref_path(struct send_ctx *sctx, struct recorded_ref *ref)
4161 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move)
4653 struct send_ctx *sctx)
4697 struct send_ctx *sctx = ctx;
4727 struct send_ctx *sctx = ctx;
4753 static int record_new_ref(struct send_ctx *sctx)
4767 static int record_deleted_ref(struct send_ctx *sctx)
4782 static int record_changed_ref(struct send_ctx *sctx)
4804 static int process_all_refs(struct send_ctx *sctx,
4864 static int send_set_xattr(struct send_ctx *sctx,
4886 static int send_remove_xattr(struct send_ctx *sctx,
4911 struct send_ctx *sctx = ctx;
4955 struct send_ctx *sctx = ctx;
4973 static int process_new_xattr(struct send_ctx *sctx)
4983 static int process_deleted_xattr(struct send_ctx *sctx)
5051 struct send_ctx *sctx = ctx;
5081 struct send_ctx *sctx = ctx;
5094 static int process_changed_xattr(struct send_ctx *sctx)
5109 static int process_all_new_xattrs(struct send_ctx *sctx)
5146 static int send_verity(struct send_ctx *sctx, struct fs_path *path,
5172 static int process_verity(struct send_ctx *sctx)
5224 static inline u64 max_send_read_size(const struct send_ctx *sctx)
5229 static int put_data_header(struct send_ctx *sctx, u32 len)
5256 static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len)
5327 static int send_write(struct send_ctx *sctx, u64 offset, u32 len)
5364 static int send_clone(struct send_ctx *sctx,
5436 static int send_update_extent(struct send_ctx *sctx,
5466 static int send_hole(struct send_ctx *sctx, u64 end)
5521 static int send_encoded_inline_extent(struct send_ctx *sctx,
5587 static int send_encoded_extent(struct send_ctx *sctx, struct btrfs_path *path,
5692 static int send_extent_data(struct send_ctx *sctx, struct btrfs_path *path,
5815 static int send_capabilities(struct send_ctx *sctx)
5866 static int clone_range(struct send_ctx *sctx, struct btrfs_path *dst_path,
6135 static int send_write_or_clone(struct send_ctx *sctx,
6167 static int is_extent_unchanged(struct send_ctx *sctx,
6357 static int get_last_extent(struct send_ctx *sctx, u64 offset)
6387 static int range_is_hole_in_parent(struct send_ctx *sctx,
6453 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path,
6496 static int process_extent(struct send_ctx *sctx,
6556 static int process_all_extents(struct send_ctx *sctx)
6592 static int process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end,
6615 static int finish_inode_if_needed(struct send_ctx *sctx, int at_end)
6802 static void close_current_inode(struct send_ctx *sctx)
6826 static int changed_inode(struct send_ctx *sctx,
7044 static int changed_ref(struct send_ctx *sctx,
7072 static int changed_xattr(struct send_ctx *sctx,
7099 static int changed_extent(struct send_ctx *sctx,
7129 static int changed_verity(struct send_ctx *sctx, enum btrfs_compare_tree_result result)
7140 static int dir_changed(struct send_ctx *sctx, u64 dir)
7156 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path,
7204 struct send_ctx *sctx)
7301 static int search_key_again(const struct send_ctx *sctx,
7334 static int full_send_tree(struct send_ctx *sctx)
7575 const struct send_ctx *sctx)
7655 struct btrfs_root *right_root, struct send_ctx *sctx)
7940 static int send_subvol(struct send_ctx *sctx)
7985 static int ensure_commit_roots_uptodate(struct send_ctx *sctx)
8025 static int flush_delalloc_roots(struct send_ctx *sctx)
8077 struct send_ctx *sctx = NULL;
8127 sctx = kzalloc(sizeof(struct send_ctx), GFP_KERNEL);