Lines Matching refs:fs_path
37 * A fs_path is a helper to dynamically build path names with unknown size.
43 struct fs_path {
63 (sizeof(struct fs_path) - offsetof(struct fs_path, inline_buf))
329 static void fs_path_reset(struct fs_path *p)
342 static struct fs_path *fs_path_alloc(void)
344 struct fs_path *p;
356 static struct fs_path *fs_path_alloc_reversed(void)
358 struct fs_path *p;
368 static void fs_path_free(struct fs_path *p)
377 static int fs_path_len(struct fs_path *p)
382 static int fs_path_ensure_buf(struct fs_path *p, int len)
432 static int fs_path_prepare_for_add(struct fs_path *p, int name_len,
462 static int fs_path_add(struct fs_path *p, const char *name, int name_len)
476 static int fs_path_add_path(struct fs_path *p, struct fs_path *p2)
490 static int fs_path_add_from_extent_buffer(struct fs_path *p,
507 static int fs_path_copy(struct fs_path *p, struct fs_path *from)
520 static void fs_path_unreverse(struct fs_path *p)
724 struct fs_path *from, struct fs_path *to)
749 struct fs_path *path, struct fs_path *lnk)
773 static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
796 static int send_rmdir(struct send_ctx *sctx, struct fs_path *path)
873 struct fs_path *p,
893 struct fs_path *p;
1118 struct fs_path *p, void *ctx)
1121 struct fs_path *pt = ctx;
1136 u64 ino, struct fs_path *path)
1483 struct fs_path *dest)
1543 struct fs_path *dest)
1742 u64 *dir, u64 *dir_gen, struct fs_path *name)
1813 struct fs_path *tmp_name;
1994 struct fs_path *name = NULL;
2148 struct fs_path *dest)
2281 struct fs_path *dest)
2284 struct fs_path *name = NULL;
2439 struct fs_path *p;
2469 struct fs_path *p;
2499 struct fs_path *p;
2531 struct fs_path *p = NULL;
2594 struct fs_path *p;
2768 struct fs_path *full_path;
2774 static void set_ref_path(struct recorded_ref *ref, struct fs_path *path)
2787 u64 dir_gen, struct fs_path *path)
2842 struct fs_path *path)
2845 struct fs_path *orphan;
3184 static int path_loop(struct send_ctx *sctx, struct fs_path *name,
3228 struct fs_path *from_path = NULL;
3229 struct fs_path *to_path = NULL;
3230 struct fs_path *name = NULL;
3565 struct fs_path *fs_path)
3577 fs_path_reset(fs_path);
3578 ret = get_first_ref(root, ino, &parent, &parent_gen, fs_path);
3597 struct fs_path *fs_path)
3604 if (!fs_path) {
3605 fs_path = fs_path_alloc();
3606 if (!fs_path)
3674 parent, parent_gen, fs_path);
3684 fs_path_free(fs_path);
3696 struct fs_path *path_before = NULL;
3697 struct fs_path *path_after = NULL;
3794 struct fs_path *new_path;
3897 struct fs_path *valid_path = NULL;
4354 static int record_ref(struct btrfs_root *root, u64 dir, struct fs_path *name,
4359 struct fs_path *p;
4387 struct fs_path *name,
4396 struct fs_path *name,
4436 struct fs_path *name;
4441 struct fs_path *name,
4469 u64 dir, u64 dir_gen, struct fs_path *name)
4491 struct fs_path *name,
4514 struct fs_path *name,
4634 struct fs_path *path,
4656 struct fs_path *path,
4682 struct fs_path *p;
4727 struct fs_path *p;
5042 struct fs_path *p;
5080 struct fs_path *p;
5152 struct fs_path *p;
5180 struct fs_path *p = NULL;
5264 struct fs_path *fspath = NULL;
6227 static int record_parent_ref(int num, u64 dir, int index, struct fs_path *name,