Lines Matching refs:send_ctx

78 struct send_ctx {  struct
274 static void inconsistent_snapshot_error(struct send_ctx *sctx, in inconsistent_snapshot_error()
307 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino);
310 get_waiting_dir_move(struct send_ctx *sctx, u64 ino);
312 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen);
314 static int need_send_hole(struct send_ctx *sctx) in need_send_hole()
563 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) in tlv_put()
582 static int tlv_put_u##bits(struct send_ctx *sctx, \
591 static int tlv_put_string(struct send_ctx *sctx, u16 attr, in tlv_put_string()
599 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr, in tlv_put_uuid()
605 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, in tlv_put_btrfs_timespec()
659 static int send_header(struct send_ctx *sctx) in send_header()
673 static int begin_cmd(struct send_ctx *sctx, int cmd) in begin_cmd()
689 static int send_cmd(struct send_ctx *sctx) in send_cmd()
715 static int send_rename(struct send_ctx *sctx, in send_rename()
740 static int send_link(struct send_ctx *sctx, in send_link()
765 static int send_unlink(struct send_ctx *sctx, struct fs_path *path) in send_unlink()
788 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path) in send_rmdir()
1171 struct send_ctx *sctx;
1296 static int find_extent_clone(struct send_ctx *sctx, in find_extent_clone()
1551 static int gen_unique_name(struct send_ctx *sctx, in gen_unique_name()
1623 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen) in get_cur_inode_state()
1689 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen) in is_inode_existent()
1860 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, in will_overwrite_ref()
1932 static int did_overwrite_ref(struct send_ctx *sctx, in did_overwrite_ref()
2005 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) in did_overwrite_first_ref()
2037 static int name_cache_insert(struct send_ctx *sctx, in name_cache_insert()
2067 static void name_cache_delete(struct send_ctx *sctx, in name_cache_delete()
2093 static struct name_cache_entry *name_cache_search(struct send_ctx *sctx, in name_cache_search()
2114 static void name_cache_used(struct send_ctx *sctx, struct name_cache_entry *nce) in name_cache_used()
2123 static void name_cache_clean_unused(struct send_ctx *sctx) in name_cache_clean_unused()
2138 static void name_cache_free(struct send_ctx *sctx) in name_cache_free()
2158 static int __get_cur_name_and_parent(struct send_ctx *sctx, in __get_cur_name_and_parent()
2294 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, in get_cur_path()
2361 static int send_subvol_begin(struct send_ctx *sctx) in send_subvol_begin()
2449 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) in send_truncate()
2479 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) in send_chmod()
2509 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) in send_chown()
2541 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) in send_utimes()
2604 static int send_create_inode(struct send_ctx *sctx, u64 ino) in send_create_inode()
2689 static int did_create_dir(struct send_ctx *sctx, u64 dir) in did_create_dir()
2757 static int send_create_inode_if_needed(struct send_ctx *sctx) in send_create_inode_if_needed()
2844 static void free_recorded_refs(struct send_ctx *sctx) in free_recorded_refs()
2855 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, in orphanize_inode()
2876 static struct orphan_dir_info *add_orphan_dir_info(struct send_ctx *sctx, in add_orphan_dir_info()
2910 static struct orphan_dir_info *get_orphan_dir_info(struct send_ctx *sctx, in get_orphan_dir_info()
2932 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino, u64 gen) in is_waiting_for_rm()
2939 static void free_orphan_dir_info(struct send_ctx *sctx, in free_orphan_dir_info()
2953 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen, in can_rmdir()
3046 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino) in is_waiting_for_move()
3053 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized) in add_waiting_dir_move()
3086 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) in get_waiting_dir_move()
3103 static void free_waiting_dir_move(struct send_ctx *sctx, in free_waiting_dir_move()
3112 static int add_pending_dir_move(struct send_ctx *sctx, in add_pending_dir_move()
3180 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx, in get_pending_dir_moves()
3198 static int path_loop(struct send_ctx *sctx, struct fs_path *name, in path_loop()
3240 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) in apply_dir_move()
3383 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m) in free_pending_move()
3393 static void tail_append_pending_moves(struct send_ctx *sctx, in tail_append_pending_moves()
3411 static int apply_children_dir_moves(struct send_ctx *sctx) in apply_children_dir_moves()
3482 static int wait_for_dest_dir_move(struct send_ctx *sctx, in wait_for_dest_dir_move()
3702 static int wait_for_parent_move(struct send_ctx *sctx, in wait_for_parent_move()
3805 static int update_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) in update_ref_path()
3876 static int refresh_ref_path(struct send_ctx *sctx, struct recorded_ref *ref) in refresh_ref_path()
3904 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move) in process_recorded_refs()
4325 struct send_ctx *sctx = ctx; in record_ref()
4357 struct send_ctx *sctx = ctx; in __record_new_ref()
4366 struct send_ctx *sctx = ctx; in __record_deleted_ref()
4371 static int record_new_ref(struct send_ctx *sctx) in record_new_ref()
4385 static int record_deleted_ref(struct send_ctx *sctx) in record_deleted_ref()
4463 struct send_ctx *sctx = ctx; in __record_changed_new_ref()
4486 struct send_ctx *sctx = ctx; in __record_changed_deleted_ref()
4503 static int record_changed_ref(struct send_ctx *sctx) in record_changed_ref()
4525 static int process_all_refs(struct send_ctx *sctx, in process_all_refs()
4600 static int send_set_xattr(struct send_ctx *sctx, in send_set_xattr()
4622 static int send_remove_xattr(struct send_ctx *sctx, in send_remove_xattr()
4648 struct send_ctx *sctx = ctx; in __process_new_xattr()
4693 struct send_ctx *sctx = ctx; in __process_deleted_xattr()
4711 static int process_new_xattr(struct send_ctx *sctx) in process_new_xattr()
4721 static int process_deleted_xattr(struct send_ctx *sctx) in process_deleted_xattr()
4791 struct send_ctx *sctx = ctx; in __process_changed_new_xattr()
4821 struct send_ctx *sctx = ctx; in __process_changed_deleted_xattr()
4834 static int process_changed_xattr(struct send_ctx *sctx) in process_changed_xattr()
4849 static int process_all_new_xattrs(struct send_ctx *sctx) in process_all_new_xattrs()
4905 static ssize_t fill_read_buf(struct send_ctx *sctx, u64 offset, u32 len) in fill_read_buf()
4997 static int send_write(struct send_ctx *sctx, u64 offset, u32 len) in send_write()
5042 static int send_clone(struct send_ctx *sctx, in send_clone()
5115 static int send_update_extent(struct send_ctx *sctx, in send_update_extent()
5145 static int send_hole(struct send_ctx *sctx, u64 end) in send_hole()
5197 static int send_extent_data(struct send_ctx *sctx, in send_extent_data()
5229 static int send_capabilities(struct send_ctx *sctx) in send_capabilities()
5280 static int clone_range(struct send_ctx *sctx, in clone_range()
5439 static int send_write_or_clone(struct send_ctx *sctx, in send_write_or_clone()
5493 static int is_extent_unchanged(struct send_ctx *sctx, in is_extent_unchanged()
5683 static int get_last_extent(struct send_ctx *sctx, u64 offset) in get_last_extent()
5727 static int range_is_hole_in_parent(struct send_ctx *sctx, in range_is_hole_in_parent()
5802 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, in maybe_send_hole()
5860 static int process_extent(struct send_ctx *sctx, in process_extent()
5920 static int process_all_extents(struct send_ctx *sctx) in process_all_extents()
5977 static int process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end, in process_recorded_refs_if_needed()
6000 static int finish_inode_if_needed(struct send_ctx *sctx, int at_end) in finish_inode_if_needed()
6142 struct send_ctx *sctx;
6158 static int btrfs_unlink_all_paths(struct send_ctx *sctx) in btrfs_unlink_all_paths()
6227 static int changed_inode(struct send_ctx *sctx, in changed_inode()
6414 static int changed_ref(struct send_ctx *sctx, in changed_ref()
6442 static int changed_xattr(struct send_ctx *sctx, in changed_xattr()
6469 static int changed_extent(struct send_ctx *sctx, in changed_extent()
6499 static int dir_changed(struct send_ctx *sctx, u64 dir) in dir_changed()
6517 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path, in compare_refs()
6568 struct send_ctx *sctx = ctx; in changed_cb()
6616 static int full_send_tree(struct send_ctx *sctx) in full_send_tree()
6666 static int send_subvol(struct send_ctx *sctx) in send_subvol()
6712 static int ensure_commit_roots_uptodate(struct send_ctx *sctx) in ensure_commit_roots_uptodate()
6752 static int flush_delalloc_roots(struct send_ctx *sctx) in flush_delalloc_roots()
6798 struct send_ctx *sctx = NULL; in btrfs_ioctl_send()
6849 sctx = kzalloc(sizeof(struct send_ctx), GFP_KERNEL); in btrfs_ioctl_send()