Lines Matching defs:sctx

282 static int need_send_hole(struct send_ctx *sctx)  in need_send_hole()
541 static int tlv_put(struct send_ctx *sctx, u16 attr, const void *data, int len) in tlv_put()
569 static int tlv_put_string(struct send_ctx *sctx, u16 attr, in tlv_put_string()
577 static int tlv_put_uuid(struct send_ctx *sctx, u16 attr, in tlv_put_uuid()
583 static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr, in tlv_put_btrfs_timespec()
593 #define TLV_PUT(sctx, attrtype, attrlen, data) \ argument
600 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ argument
607 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) argument
608 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) argument
609 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) argument
610 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) argument
611 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ argument
617 #define TLV_PUT_PATH(sctx, attrtype, p) \ argument
624 #define TLV_PUT_UUID(sctx, attrtype, uuid) \ argument
630 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ argument
637 static int send_header(struct send_ctx *sctx) in send_header()
651 static int begin_cmd(struct send_ctx *sctx, int cmd) in begin_cmd()
667 static int send_cmd(struct send_ctx *sctx) in send_cmd()
693 static int send_rename(struct send_ctx *sctx, in send_rename()
717 static int send_link(struct send_ctx *sctx, in send_link()
741 static int send_unlink(struct send_ctx *sctx, struct fs_path *path) in send_unlink()
763 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path) in send_rmdir()
1145 struct send_ctx *sctx; member
1273 static int find_extent_clone(struct send_ctx *sctx, in find_extent_clone()
1502 static int gen_unique_name(struct send_ctx *sctx, in gen_unique_name()
1574 static int get_cur_inode_state(struct send_ctx *sctx, u64 ino, u64 gen) in get_cur_inode_state()
1640 static int is_inode_existent(struct send_ctx *sctx, u64 ino, u64 gen) in is_inode_existent()
1808 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, in will_overwrite_ref()
1879 static int did_overwrite_ref(struct send_ctx *sctx, in did_overwrite_ref()
1932 static int did_overwrite_first_ref(struct send_ctx *sctx, u64 ino, u64 gen) in did_overwrite_first_ref()
1964 static int name_cache_insert(struct send_ctx *sctx, in name_cache_insert()
1994 static void name_cache_delete(struct send_ctx *sctx, in name_cache_delete()
2020 static struct name_cache_entry *name_cache_search(struct send_ctx *sctx, in name_cache_search()
2041 static void name_cache_used(struct send_ctx *sctx, struct name_cache_entry *nce) in name_cache_used()
2050 static void name_cache_clean_unused(struct send_ctx *sctx) in name_cache_clean_unused()
2065 static void name_cache_free(struct send_ctx *sctx) in name_cache_free()
2085 static int __get_cur_name_and_parent(struct send_ctx *sctx, in __get_cur_name_and_parent()
2221 static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, in get_cur_path()
2282 static int send_subvol_begin(struct send_ctx *sctx) in send_subvol_begin()
2360 static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size) in send_truncate()
2389 static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) in send_chmod()
2418 static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid) in send_chown()
2448 static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen) in send_utimes()
2508 static int send_create_inode(struct send_ctx *sctx, u64 ino) in send_create_inode()
2592 static int did_create_dir(struct send_ctx *sctx, u64 dir) in did_create_dir()
2660 static int send_create_inode_if_needed(struct send_ctx *sctx) in send_create_inode_if_needed()
2752 static void free_recorded_refs(struct send_ctx *sctx) in free_recorded_refs()
2763 static int orphanize_inode(struct send_ctx *sctx, u64 ino, u64 gen, in orphanize_inode()
2785 add_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino) in add_orphan_dir_info()
2816 get_orphan_dir_info(struct send_ctx *sctx, u64 dir_ino) in get_orphan_dir_info()
2833 static int is_waiting_for_rm(struct send_ctx *sctx, u64 dir_ino) in is_waiting_for_rm()
2840 static void free_orphan_dir_info(struct send_ctx *sctx, in free_orphan_dir_info()
2854 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen, in can_rmdir()
2933 static int is_waiting_for_move(struct send_ctx *sctx, u64 ino) in is_waiting_for_move()
2940 static int add_waiting_dir_move(struct send_ctx *sctx, u64 ino) in add_waiting_dir_move()
2971 get_waiting_dir_move(struct send_ctx *sctx, u64 ino) in get_waiting_dir_move()
2988 static void free_waiting_dir_move(struct send_ctx *sctx, in free_waiting_dir_move()
2997 static int add_pending_dir_move(struct send_ctx *sctx, in add_pending_dir_move()
3066 static struct pending_dir_move *get_pending_dir_moves(struct send_ctx *sctx, in get_pending_dir_moves()
3084 static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) in apply_dir_move()
3191 static void free_pending_move(struct send_ctx *sctx, struct pending_dir_move *m) in free_pending_move()
3214 static int apply_children_dir_moves(struct send_ctx *sctx) in apply_children_dir_moves()
3285 static int wait_for_dest_dir_move(struct send_ctx *sctx, in wait_for_dest_dir_move()
3370 static int wait_for_parent_move(struct send_ctx *sctx, in wait_for_parent_move()
3448 static int process_recorded_refs(struct send_ctx *sctx, int *pending_move) in process_recorded_refs()
3783 struct send_ctx *sctx = ctx; in record_ref() local
3815 struct send_ctx *sctx = ctx; in __record_new_ref() local
3825 struct send_ctx *sctx = ctx; in __record_deleted_ref() local
3830 static int record_new_ref(struct send_ctx *sctx) in record_new_ref()
3844 static int record_deleted_ref(struct send_ctx *sctx) in record_deleted_ref()
3922 struct send_ctx *sctx = ctx; in __record_changed_new_ref() local
3945 struct send_ctx *sctx = ctx; in __record_changed_deleted_ref() local
3962 static int record_changed_ref(struct send_ctx *sctx) in record_changed_ref()
3984 static int process_all_refs(struct send_ctx *sctx, in process_all_refs()
4057 static int send_set_xattr(struct send_ctx *sctx, in send_set_xattr()
4079 static int send_remove_xattr(struct send_ctx *sctx, in send_remove_xattr()
4105 struct send_ctx *sctx = ctx; in __process_new_xattr() local
4146 struct send_ctx *sctx = ctx; in __process_deleted_xattr() local
4164 static int process_new_xattr(struct send_ctx *sctx) in process_new_xattr()
4174 static int process_deleted_xattr(struct send_ctx *sctx) in process_deleted_xattr()
4248 struct send_ctx *sctx = ctx; in __process_changed_new_xattr() local
4278 struct send_ctx *sctx = ctx; in __process_changed_deleted_xattr() local
4291 static int process_changed_xattr(struct send_ctx *sctx) in process_changed_xattr()
4306 static int process_all_new_xattrs(struct send_ctx *sctx) in process_all_new_xattrs()
4363 static ssize_t fill_read_buf(struct send_ctx *sctx, u64 offset, u32 len) in fill_read_buf()
4440 static int send_write(struct send_ctx *sctx, u64 offset, u32 len) in send_write()
4484 static int send_clone(struct send_ctx *sctx, in send_clone()
4544 static int send_update_extent(struct send_ctx *sctx, in send_update_extent()
4574 static int send_hole(struct send_ctx *sctx, u64 end) in send_hole()
4607 static int send_write_or_clone(struct send_ctx *sctx, in send_write_or_clone()
4666 static int is_extent_unchanged(struct send_ctx *sctx, in is_extent_unchanged()
4836 static int get_last_extent(struct send_ctx *sctx, u64 offset) in get_last_extent()
4881 static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, in maybe_send_hole()
4931 static int process_extent(struct send_ctx *sctx, in process_extent()
4991 static int process_all_extents(struct send_ctx *sctx) in process_all_extents()
5048 static int process_recorded_refs_if_needed(struct send_ctx *sctx, int at_end, in process_recorded_refs_if_needed()
5071 static int finish_inode_if_needed(struct send_ctx *sctx, int at_end) in finish_inode_if_needed()
5192 static int changed_inode(struct send_ctx *sctx, in changed_inode()
5350 static int changed_ref(struct send_ctx *sctx, in changed_ref()
5375 static int changed_xattr(struct send_ctx *sctx, in changed_xattr()
5399 static int changed_extent(struct send_ctx *sctx, in changed_extent()
5415 static int dir_changed(struct send_ctx *sctx, u64 dir) in dir_changed()
5433 static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path, in compare_refs()
5486 struct send_ctx *sctx = ctx; in changed_cb() local
5532 static int full_send_tree(struct send_ctx *sctx) in full_send_tree()
5587 static int send_subvol(struct send_ctx *sctx) in send_subvol()
5633 static int ensure_commit_roots_uptodate(struct send_ctx *sctx) in ensure_commit_roots_uptodate()
5688 struct send_ctx *sctx = NULL; in btrfs_ioctl_send() local