Lines Matching defs:sctx

283 static int need_send_hole(struct send_ctx *sctx)  in need_send_hole()
542 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) in tlv_put()
570 static int tlv_put_string(struct send_ctx *sctx, u16 attr, in tlv_put_string()
578 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr, in tlv_put_uuid()
584 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, in tlv_put_btrfs_timespec()
594 #define TLV_PUT(sctx, attrtype, attrlen, data) \ argument
601 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ argument
608 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) argument
609 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) argument
610 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) argument
611 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) argument
612 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ argument
618 #define TLV_PUT_PATH(sctx, attrtype, p) \ argument
625 #define TLV_PUT_UUID(sctx, attrtype, uuid) \ argument
631 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ argument
638 static int send_header(struct send_ctx *sctx) in send_header()
652 static int begin_cmd(struct send_ctx *sctx, int cmd) in begin_cmd()
668 static int send_cmd(struct send_ctx *sctx) in send_cmd()
694 static int send_rename(struct send_ctx *sctx, in send_rename()
718 static int send_link(struct send_ctx *sctx, in send_link()
742 static int send_unlink(struct send_ctx *sctx, struct fs_path *path) in send_unlink()
764 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path) in send_rmdir()
1146 struct send_ctx *sctx; member
1277 static int find_extent_clone(struct send_ctx *sctx, in find_extent_clone()
1509 static int gen_unique_name(struct send_ctx *sctx, in gen_unique_name()
1581 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen) in get_cur_inode_state()
1647 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen) in is_inode_existent()
1815 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, in will_overwrite_ref()
1886 static int did_overwrite_ref(struct send_ctx *sctx, in did_overwrite_ref()
1946 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) in did_overwrite_first_ref()
1978 static int name_cache_insert(struct send_ctx *sctx, in name_cache_insert()
2008 static void name_cache_delete(struct send_ctx *sctx, in name_cache_delete()
2034 static struct name_cache_entry *name_cache_search(struct send_ctx *sctx, in name_cache_search()
2055 static void name_cache_used(struct send_ctx *sctx, struct name_cache_entry *nce) in name_cache_used()
2064 static void name_cache_clean_unused(struct send_ctx *sctx) in name_cache_clean_unused()
2079 static void name_cache_free(struct send_ctx *sctx) in name_cache_free()
2099 static int __get_cur_name_and_parent(struct send_ctx *sctx, in __get_cur_name_and_parent()
2235 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, in get_cur_path()
2302 static int send_subvol_begin(struct send_ctx *sctx) in send_subvol_begin()
2390 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) in send_truncate()
2419 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) in send_chmod()
2448 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) in send_chown()
2478 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) in send_utimes()
2538 static int send_create_inode(struct send_ctx *sctx, u64 ino) in send_create_inode()
2622 static int did_create_dir(struct send_ctx *sctx, u64 dir) in did_create_dir()
2690 static int send_create_inode_if_needed(struct send_ctx *sctx) in send_create_inode_if_needed()
2782 static void free_recorded_refs(struct send_ctx *sctx) in free_recorded_refs()
2793 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, in orphanize_inode()
2815 add_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino) in add_orphan_dir_info()
2846 get_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino) in get_orphan_dir_info()
2863 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino) in is_waiting_for_rm()
2870 static void free_orphan_dir_info(struct send_ctx *sctx, in free_orphan_dir_info()
2884 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen, in can_rmdir()
2963 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino) in is_waiting_for_move()
2970 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino, bool orphanized) in add_waiting_dir_move()
3002 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) in get_waiting_dir_move()
3019 static void free_waiting_dir_move(struct send_ctx *sctx, in free_waiting_dir_move()
3028 static int add_pending_dir_move(struct send_ctx *sctx, in add_pending_dir_move()
3097 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx, in get_pending_dir_moves()
3115 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) in apply_dir_move()
3222 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m) in free_pending_move()
3245 static int apply_children_dir_moves(struct send_ctx *sctx) in apply_children_dir_moves()
3316 static int wait_for_dest_dir_move(struct send_ctx *sctx, in wait_for_dest_dir_move()
3432 static int wait_for_parent_move(struct send_ctx *sctx, in wait_for_parent_move()
3524 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move) in process_recorded_refs()
3863 struct send_ctx *sctx = ctx; in record_ref() local
3895 struct send_ctx *sctx = ctx; in __record_new_ref() local
3905 struct send_ctx *sctx = ctx; in __record_deleted_ref() local
3910 static int record_new_ref(struct send_ctx *sctx) in record_new_ref()
3924 static int record_deleted_ref(struct send_ctx *sctx) in record_deleted_ref()
4002 struct send_ctx *sctx = ctx; in __record_changed_new_ref() local
4025 struct send_ctx *sctx = ctx; in __record_changed_deleted_ref() local
4042 static int record_changed_ref(struct send_ctx *sctx) in record_changed_ref()
4064 static int process_all_refs(struct send_ctx *sctx, in process_all_refs()
4137 static int send_set_xattr(struct send_ctx *sctx, in send_set_xattr()
4159 static int send_remove_xattr(struct send_ctx *sctx, in send_remove_xattr()
4185 struct send_ctx *sctx = ctx; in __process_new_xattr() local
4226 struct send_ctx *sctx = ctx; in __process_deleted_xattr() local
4244 static int process_new_xattr(struct send_ctx *sctx) in process_new_xattr()
4254 static int process_deleted_xattr(struct send_ctx *sctx) in process_deleted_xattr()
4328 struct send_ctx *sctx = ctx; in __process_changed_new_xattr() local
4358 struct send_ctx *sctx = ctx; in __process_changed_deleted_xattr() local
4371 static int process_changed_xattr(struct send_ctx *sctx) in process_changed_xattr()
4386 static int process_all_new_xattrs(struct send_ctx *sctx) in process_all_new_xattrs()
4443 static ssize_t fill_read_buf(struct send_ctx *sctx, u64 offset, u32 len) in fill_read_buf()
4520 static int send_write(struct send_ctx *sctx, u64 offset, u32 len) in send_write()
4564 static int send_clone(struct send_ctx *sctx, in send_clone()
4637 static int send_update_extent(struct send_ctx *sctx, in send_update_extent()
4667 static int send_hole(struct send_ctx *sctx, u64 end) in send_hole()
4700 static int send_extent_data(struct send_ctx *sctx, in send_extent_data()
4725 static int clone_range(struct send_ctx *sctx, in clone_range()
4865 static int send_write_or_clone(struct send_ctx *sctx, in send_write_or_clone()
4915 static int is_extent_unchanged(struct send_ctx *sctx, in is_extent_unchanged()
5085 static int get_last_extent(struct send_ctx *sctx, u64 offset) in get_last_extent()
5130 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, in maybe_send_hole()
5180 static int process_extent(struct send_ctx *sctx, in process_extent()
5240 static int process_all_extents(struct send_ctx *sctx) in process_all_extents()
5297 static int process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end, in process_recorded_refs_if_needed()
5320 static int finish_inode_if_needed(struct send_ctx *sctx, int at_end) in finish_inode_if_needed()
5441 static int changed_inode(struct send_ctx *sctx, in changed_inode()
5599 static int changed_ref(struct send_ctx *sctx, in changed_ref()
5624 static int changed_xattr(struct send_ctx *sctx, in changed_xattr()
5648 static int changed_extent(struct send_ctx *sctx, in changed_extent()
5664 static int dir_changed(struct send_ctx *sctx, u64 dir) in dir_changed()
5682 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path, in compare_refs()
5735 struct send_ctx *sctx = ctx; in changed_cb() local
5781 static int full_send_tree(struct send_ctx *sctx) in full_send_tree()
5836 static int send_subvol(struct send_ctx *sctx) in send_subvol()
5882 static int ensure_commit_roots_uptodate(struct send_ctx *sctx) in ensure_commit_roots_uptodate()
5937 struct send_ctx *sctx = NULL; in btrfs_ioctl_send() local