Lines Matching refs:send_ctx

137 struct send_ctx {  struct
373 static void inconsistent_snapshot_error(struct send_ctx *sctx, in inconsistent_snapshot_error()
406 static bool proto_cmd_ok(const struct send_ctx *sctx, int cmd) in proto_cmd_ok()
416 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
419 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
421 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
423 static int need_send_hole(struct send_ctx *sctx) in need_send_hole()
622 static inline bool is_current_inode_path(const struct send_ctx *sctx, in is_current_inode_path()
660 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) in tlv_put()
682 static int tlv_put_u##bits(struct send_ctx *sctx, \
693 static int tlv_put_string(struct send_ctx *sctx, u16 attr, in tlv_put_string()
701 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr, in tlv_put_uuid()
707 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, in tlv_put_btrfs_timespec()
761 static int send_header(struct send_ctx *sctx) in send_header()
774 static int begin_cmd(struct send_ctx *sctx, int cmd) in begin_cmd()
795 static int send_cmd(struct send_ctx *sctx) in send_cmd()
820 static int send_rename(struct send_ctx *sctx, in send_rename()
841 static int send_link(struct send_ctx *sctx, in send_link()
862 static int send_unlink(struct send_ctx *sctx, struct fs_path *path) in send_unlink()
881 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path) in send_rmdir()
1256 struct send_ctx *sctx;
1380 struct send_ctx *sctx = bctx->sctx; in lookup_backref_cache()
1420 struct send_ctx *sctx = bctx->sctx; in store_backref_cache()
1493 const struct send_ctx *sctx = bctx->sctx; in check_extent_item()
1546 static int find_extent_clone(struct send_ctx *sctx, in find_extent_clone()
1771 static int gen_unique_name(struct send_ctx *sctx, in gen_unique_name()
1839 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen, in get_cur_inode_state()
1910 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen, in is_inode_existent()
2064 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, in will_overwrite_ref()
2126 static int did_overwrite_ref(struct send_ctx *sctx, in did_overwrite_ref()
2197 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) in did_overwrite_first_ref()
2223 static inline struct name_cache_entry *name_cache_search(struct send_ctx *sctx, in name_cache_search()
2243 static int __get_cur_name_and_parent(struct send_ctx *sctx, in __get_cur_name_and_parent()
2374 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, in get_cur_path()
2453 static int send_subvol_begin(struct send_ctx *sctx) in send_subvol_begin()
2533 static struct fs_path *get_cur_inode_path(struct send_ctx *sctx) in get_cur_inode_path()
2547 static struct fs_path *get_path_for_command(struct send_ctx *sctx, u64 ino, u64 gen) in get_path_for_command()
2568 static void free_path_for_command(const struct send_ctx *sctx, struct fs_path *path) in free_path_for_command()
2574 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) in send_truncate()
2598 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) in send_chmod()
2622 static int send_fileattr(struct send_ctx *sctx, u64 ino, u64 gen, u64 fileattr) in send_fileattr()
2649 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) in send_chown()
2674 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) in send_utimes()
2736 static int cache_dir_utimes(struct send_ctx *sctx, u64 dir, u64 gen) in cache_dir_utimes()
2763 static int trim_dir_utimes_cache(struct send_ctx *sctx) in trim_dir_utimes_cache()
2787 static int send_create_inode(struct send_ctx *sctx, u64 ino) in send_create_inode()
2867 static void cache_dir_created(struct send_ctx *sctx, u64 dir) in cache_dir_created()
2889 static int did_create_dir(struct send_ctx *sctx, u64 dir) in did_create_dir()
2942 static int send_create_inode_if_needed(struct send_ctx *sctx) in send_create_inode_if_needed()
3027 static void free_recorded_refs(struct send_ctx *sctx) in free_recorded_refs()
3038 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, in orphanize_inode()
3064 static struct orphan_dir_info *add_orphan_dir_info(struct send_ctx *sctx, in add_orphan_dir_info()
3099 static struct orphan_dir_info *get_orphan_dir_info(struct send_ctx *sctx, in get_orphan_dir_info()
3121 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen) in is_waiting_for_rm()
3128 static void free_orphan_dir_info(struct send_ctx *sctx, in free_orphan_dir_info()
3142 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen) in can_rmdir()
3274 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino) in is_waiting_for_move()
3281 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized) in add_waiting_dir_move()
3314 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) in get_waiting_dir_move()
3331 static void free_waiting_dir_move(struct send_ctx *sctx, in free_waiting_dir_move()
3340 static int add_pending_dir_move(struct send_ctx *sctx, in add_pending_dir_move()
3408 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx, in get_pending_dir_moves()
3426 static int path_loop(struct send_ctx *sctx, struct fs_path *name, in path_loop()
3468 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) in apply_dir_move()
3610 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m) in free_pending_move()
3620 static void tail_append_pending_moves(struct send_ctx *sctx, in tail_append_pending_moves()
3638 static int apply_children_dir_moves(struct send_ctx *sctx) in apply_children_dir_moves()
3708 static int wait_for_dest_dir_move(struct send_ctx *sctx, in wait_for_dest_dir_move()
3902 static int wait_for_parent_move(struct send_ctx *sctx, in wait_for_parent_move()
4003 static int update_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) in update_ref_path()
4074 static int refresh_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) in refresh_ref_path()
4140 static int rename_current_inode(struct send_ctx *sctx, in rename_current_inode()
4160 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move) in process_recorded_refs()
4644 struct send_ctx *sctx) in record_ref_in_tree()
4687 struct send_ctx *sctx = ctx; in record_new_ref_if_needed()
4716 struct send_ctx *sctx = ctx; in record_deleted_ref_if_needed()
4742 static int record_new_ref(struct send_ctx *sctx) in record_new_ref()
4754 static int record_deleted_ref(struct send_ctx *sctx) in record_deleted_ref()
4766 static int record_changed_ref(struct send_ctx *sctx) in record_changed_ref()
4786 static int process_all_refs(struct send_ctx *sctx, in process_all_refs()
4841 static int send_set_xattr(struct send_ctx *sctx, in send_set_xattr()
4866 static int send_remove_xattr(struct send_ctx *sctx, in send_remove_xattr()
4889 struct send_ctx *sctx = ctx; in __process_new_xattr()
4919 struct send_ctx *sctx = ctx; in __process_deleted_xattr()
4929 static int process_new_xattr(struct send_ctx *sctx) in process_new_xattr()
4935 static int process_deleted_xattr(struct send_ctx *sctx) in process_deleted_xattr()
5007 struct send_ctx *sctx = ctx; in __process_changed_new_xattr()
5036 struct send_ctx *sctx = ctx; in __process_changed_deleted_xattr()
5049 static int process_changed_xattr(struct send_ctx *sctx) in process_changed_xattr()
5062 static int process_all_new_xattrs(struct send_ctx *sctx) in process_all_new_xattrs()
5098 static int send_verity(struct send_ctx *sctx, struct fs_path *path, in send_verity()
5123 static int process_verity(struct send_ctx *sctx) in process_verity()
5166 static inline u64 max_send_read_size(const struct send_ctx *sctx) in max_send_read_size()
5171 static int put_data_header(struct send_ctx *sctx, u32 len) in put_data_header()
5198 static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len) in put_file_data()
5272 static int send_write(struct send_ctx *sctx, u64 offset, u32 len) in send_write()
5300 static int send_clone(struct send_ctx *sctx, in send_clone()
5368 static int send_update_extent(struct send_ctx *sctx, in send_update_extent()
5392 static int send_fallocate(struct send_ctx *sctx, u32 mode, u64 offset, u64 len) in send_fallocate()
5416 static int send_hole(struct send_ctx *sctx, u64 end) in send_hole()
5476 static int send_encoded_inline_extent(struct send_ctx *sctx, in send_encoded_inline_extent()
5527 static int send_encoded_extent(struct send_ctx *sctx, struct btrfs_path *path, in send_encoded_extent()
5628 static int send_extent_data(struct send_ctx *sctx, struct btrfs_path *path, in send_extent_data()
5750 static int send_capabilities(struct send_ctx *sctx) in send_capabilities()
5788 static int clone_range(struct send_ctx *sctx, struct btrfs_path *dst_path, in clone_range()
6055 static int send_write_or_clone(struct send_ctx *sctx, in send_write_or_clone()
6134 static int is_extent_unchanged(struct send_ctx *sctx, in is_extent_unchanged()
6307 static int get_last_extent(struct send_ctx *sctx, u64 offset) in get_last_extent()
6335 static int range_is_hole_in_parent(struct send_ctx *sctx, in range_is_hole_in_parent()
6399 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, in maybe_send_hole()
6439 static int process_extent(struct send_ctx *sctx, in process_extent()
6491 static int process_all_extents(struct send_ctx *sctx) in process_all_extents()
6526 static int process_recorded_refs_if_needed(struct send_ctx *sctx, bool at_end, in process_recorded_refs_if_needed()
6550 static int finish_inode_if_needed(struct send_ctx *sctx, bool at_end) in finish_inode_if_needed()
6737 static void close_current_inode(struct send_ctx *sctx) in close_current_inode()
6761 static int changed_inode(struct send_ctx *sctx, in changed_inode()
6979 static int changed_ref(struct send_ctx *sctx, in changed_ref()
7007 static int changed_xattr(struct send_ctx *sctx, in changed_xattr()
7034 static int changed_extent(struct send_ctx *sctx, in changed_extent()
7064 static int changed_verity(struct send_ctx *sctx, enum btrfs_compare_tree_result result) in changed_verity()
7073 static int dir_changed(struct send_ctx *sctx, u64 dir) in dir_changed()
7089 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path, in compare_refs()
7136 struct send_ctx *sctx) in changed_cb()
7231 static int search_key_again(const struct send_ctx *sctx, in search_key_again()
7264 static int full_send_tree(struct send_ctx *sctx) in full_send_tree()
7501 const struct send_ctx *sctx) in restart_after_relocation()
7581 struct btrfs_root *right_root, struct send_ctx *sctx) in btrfs_compare_trees()
7864 static int send_subvol(struct send_ctx *sctx) in send_subvol()
7909 static int ensure_commit_roots_uptodate(struct send_ctx *sctx) in ensure_commit_roots_uptodate()
7933 static int flush_delalloc_roots(struct send_ctx *sctx) in flush_delalloc_roots()
7984 struct send_ctx *sctx = NULL; in btrfs_ioctl_send()
8038 sctx = kzalloc_obj(struct send_ctx); in btrfs_ioctl_send()