Lines Matching refs:fs_path
63 struct fs_path { struct
73 sizeof_field(struct fs_path, inline_buf)
310 struct fs_path cur_inode_path;
430 static void fs_path_reset(struct fs_path *p) in fs_path_reset()
441 static void init_path(struct fs_path *p) in init_path()
449 static struct fs_path *fs_path_alloc(void) in fs_path_alloc()
451 struct fs_path *p; in fs_path_alloc()
460 static struct fs_path *fs_path_alloc_reversed(void) in fs_path_alloc_reversed()
462 struct fs_path *p; in fs_path_alloc_reversed()
472 static void fs_path_free(struct fs_path *p) in fs_path_free()
481 static inline int fs_path_len(const struct fs_path *p) in fs_path_len()
486 static int fs_path_ensure_buf(struct fs_path *p, int len) in fs_path_ensure_buf()
535 static int fs_path_prepare_for_add(struct fs_path *p, int name_len, in fs_path_prepare_for_add()
564 static int fs_path_add(struct fs_path *p, const char *name, int name_len) in fs_path_add()
577 static inline int fs_path_add_path(struct fs_path *p, const struct fs_path *p2) in fs_path_add_path()
582 static int fs_path_add_from_extent_buffer(struct fs_path *p, in fs_path_add_from_extent_buffer()
598 static int fs_path_copy(struct fs_path *p, struct fs_path *from) in fs_path_copy()
606 static void fs_path_unreverse(struct fs_path *p) in fs_path_unreverse()
623 const struct fs_path *path) in is_current_inode_path()
625 const struct fs_path *cur = &sctx->cur_inode_path; in is_current_inode_path()
821 struct fs_path *from, struct fs_path *to) in send_rename()
842 struct fs_path *path, struct fs_path *lnk) 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()
966 typedef int (*iterate_inode_ref_t)(u64 dir, struct fs_path *p, void *ctx);
984 struct fs_path *p; in iterate_inode_ref()
1203 static int __copy_first_ref(u64 dir, struct fs_path *p, void *ctx) in __copy_first_ref()
1206 struct fs_path *pt = ctx; in __copy_first_ref()
1221 u64 ino, struct fs_path *path) in get_inode_path()
1706 struct fs_path *dest) in read_symlink()
1773 struct fs_path *dest) in gen_unique_name()
1965 u64 *dir, u64 *dir_gen, struct fs_path *name) in get_first_ref()
2031 struct fs_path *tmp_name; in is_first_ref()
2200 struct fs_path *name = NULL; in did_overwrite_first_ref()
2247 struct fs_path *dest) in __get_cur_name_and_parent()
2375 struct fs_path *dest) in get_cur_path()
2378 struct fs_path *name = NULL; in get_cur_path()
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()
2549 struct fs_path *path; 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()
2577 struct fs_path *p; in send_truncate()
2601 struct fs_path *p; in send_chmod()
2625 struct fs_path *p; in send_fileattr()
2652 struct fs_path *p; in send_chown()
2677 struct fs_path *p = NULL; in send_utimes()
2790 struct fs_path *p; in send_create_inode()
2965 struct fs_path *full_path;
2996 static void set_ref_path(struct recorded_ref *ref, struct fs_path *path) in set_ref_path()
3039 struct fs_path *path) in orphanize_inode()
3042 struct fs_path *orphan; in orphanize_inode()
3426 static int path_loop(struct send_ctx *sctx, struct fs_path *name, in path_loop()
3470 struct fs_path *from_path = NULL; in apply_dir_move()
3471 struct fs_path *to_path = NULL; in apply_dir_move()
3472 struct fs_path *name = NULL; in apply_dir_move()
3792 struct fs_path *fs_path) in check_ino_in_path() argument
3804 fs_path_reset(fs_path); in check_ino_in_path()
3805 ret = get_first_ref(root, ino, &parent, &parent_gen, fs_path); in check_ino_in_path()
3824 struct fs_path *fs_path) in is_ancestor() argument
3832 if (!fs_path) { in is_ancestor()
3833 fs_path = fs_path_alloc(); in is_ancestor()
3834 if (!fs_path) in is_ancestor()
3887 parent, parent_gen, fs_path); in is_ancestor()
3898 fs_path_free(fs_path); in is_ancestor()
3910 struct fs_path *path_before = NULL; in wait_for_parent_move()
3911 struct fs_path *path_after = NULL; in wait_for_parent_move()
4006 struct fs_path *new_path; in update_ref_path()
4141 struct fs_path *current_path, in rename_current_inode()
4142 struct fs_path *new_path) in rename_current_inode()
4168 struct fs_path *valid_path = NULL; in process_recorded_refs()
4643 struct fs_path *name, u64 dir, u64 dir_gen, in record_ref_in_tree()
4647 struct fs_path *path = NULL; in record_ref_in_tree()
4684 static int record_new_ref_if_needed(u64 dir, struct fs_path *name, void *ctx) in record_new_ref_if_needed()
4713 static int record_deleted_ref_if_needed(u64 dir, struct fs_path *name, void *ctx) in record_deleted_ref_if_needed()
4845 struct fs_path *path; in send_set_xattr()
4867 struct fs_path *path, in send_remove_xattr()
4920 struct fs_path *p; in __process_deleted_xattr()
5098 static int send_verity(struct send_ctx *sctx, struct fs_path *path, in send_verity()
5127 struct fs_path *p; in process_verity()
5275 struct fs_path *p; in send_write()
5305 struct fs_path *p; in send_clone()
5306 struct fs_path *cur_inode_path; in send_clone()
5372 struct fs_path *p; in send_update_extent()
5394 struct fs_path *path; in send_fallocate()
5418 struct fs_path *p = NULL; in send_hole()
5481 struct fs_path *fspath; in send_encoded_inline_extent()
5533 struct fs_path *fspath; in send_encoded_extent()