Lines Matching refs:ipath
2284 struct extent_buffer *eb, struct inode_fs_paths *ipath);
2286 static int iterate_inode_refs(u64 inum, struct inode_fs_paths *ipath) in iterate_inode_refs() argument
2295 struct btrfs_root *fs_root = ipath->fs_root; in iterate_inode_refs()
2296 struct btrfs_path *path = ipath->btrfs_path; in iterate_inode_refs()
2333 (unsigned long)(iref + 1), eb, ipath); in iterate_inode_refs()
2347 static int iterate_inode_extrefs(u64 inum, struct inode_fs_paths *ipath) in iterate_inode_extrefs() argument
2354 struct btrfs_root *fs_root = ipath->fs_root; in iterate_inode_extrefs()
2355 struct btrfs_path *path = ipath->btrfs_path; in iterate_inode_extrefs()
2392 (unsigned long)&extref->name, eb, ipath); in iterate_inode_extrefs()
2414 struct extent_buffer *eb, struct inode_fs_paths *ipath) in inode_to_path() argument
2418 int i = ipath->fspath->elem_cnt; in inode_to_path()
2422 bytes_left = ipath->fspath->bytes_left > s_ptr ? in inode_to_path()
2423 ipath->fspath->bytes_left - s_ptr : 0; in inode_to_path()
2425 fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr; in inode_to_path()
2426 fspath = btrfs_ref_to_path(ipath->fs_root, ipath->btrfs_path, name_len, in inode_to_path()
2432 ipath->fspath->val[i] = (u64)(unsigned long)fspath; in inode_to_path()
2433 ++ipath->fspath->elem_cnt; in inode_to_path()
2434 ipath->fspath->bytes_left = fspath - fspath_min; in inode_to_path()
2436 ++ipath->fspath->elem_missed; in inode_to_path()
2437 ipath->fspath->bytes_missing += fspath_min - fspath; in inode_to_path()
2438 ipath->fspath->bytes_left = 0; in inode_to_path()
2454 int paths_from_inode(u64 inum, struct inode_fs_paths *ipath) in paths_from_inode() argument
2459 ret = iterate_inode_refs(inum, ipath); in paths_from_inode()
2465 ret = iterate_inode_extrefs(inum, ipath); in paths_from_inode()
2525 void free_ipath(struct inode_fs_paths *ipath) in free_ipath() argument
2527 if (!ipath) in free_ipath()
2529 kvfree(ipath->fspath); in free_ipath()
2530 kfree(ipath); in free_ipath()