Lines Matching defs:ipath

2585 			 struct extent_buffer *eb, struct inode_fs_paths *ipath);
2587 static int iterate_inode_refs(u64 inum, struct inode_fs_paths *ipath)
2596 struct btrfs_root *fs_root = ipath->fs_root;
2597 struct btrfs_path *path = ipath->btrfs_path;
2634 (unsigned long)(iref + 1), eb, ipath);
2648 static int iterate_inode_extrefs(u64 inum, struct inode_fs_paths *ipath)
2655 struct btrfs_root *fs_root = ipath->fs_root;
2656 struct btrfs_path *path = ipath->btrfs_path;
2693 (unsigned long)&extref->name, eb, ipath);
2715 struct extent_buffer *eb, struct inode_fs_paths *ipath)
2719 int i = ipath->fspath->elem_cnt;
2723 bytes_left = ipath->fspath->bytes_left > s_ptr ?
2724 ipath->fspath->bytes_left - s_ptr : 0;
2726 fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr;
2727 fspath = btrfs_ref_to_path(ipath->fs_root, ipath->btrfs_path, name_len,
2733 ipath->fspath->val[i] = (u64)(unsigned long)fspath;
2734 ++ipath->fspath->elem_cnt;
2735 ipath->fspath->bytes_left = fspath - fspath_min;
2737 ++ipath->fspath->elem_missed;
2738 ipath->fspath->bytes_missing += fspath_min - fspath;
2739 ipath->fspath->bytes_left = 0;
2746 * this dumps all file system paths to the inode into the ipath struct, provided
2748 * from ipath->fspath->val[i].
2749 * when it returns, there are ipath->fspath->elem_cnt number of paths available
2750 * in ipath->fspath->val[]. when the allocated space wasn't sufficient, the
2751 * number of missed paths is recorded in ipath->fspath->elem_missed, otherwise,
2752 * it's zero. ipath->fspath->bytes_missing holds the number of bytes that would
2755 int paths_from_inode(u64 inum, struct inode_fs_paths *ipath)
2760 ret = iterate_inode_refs(inum, ipath);
2766 ret = iterate_inode_extrefs(inum, ipath);
2820 void free_ipath(struct inode_fs_paths *ipath)
2822 if (!ipath)
2824 kvfree(ipath->fspath);
2825 kfree(ipath);