Lines Matching defs:fspath
2711 char *fspath;
2713 int i = ipath->fspath->elem_cnt;
2717 bytes_left = ipath->fspath->bytes_left > s_ptr ?
2718 ipath->fspath->bytes_left - s_ptr : 0;
2720 fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr;
2721 fspath = btrfs_ref_to_path(ipath->fs_root, ipath->btrfs_path, name_len,
2723 if (IS_ERR(fspath))
2724 return PTR_ERR(fspath);
2726 if (fspath > fspath_min) {
2727 ipath->fspath->val[i] = (u64)(unsigned long)fspath;
2728 ++ipath->fspath->elem_cnt;
2729 ipath->fspath->bytes_left = fspath - fspath_min;
2731 ++ipath->fspath->elem_missed;
2732 ipath->fspath->bytes_missing += fspath_min - fspath;
2733 ipath->fspath->bytes_left = 0;
2742 * from ipath->fspath->val[i].
2743 * when it returns, there are ipath->fspath->elem_cnt number of paths available
2744 * in ipath->fspath->val[]. when the allocated space wasn't sufficient, the
2745 * number of missed paths is recorded in ipath->fspath->elem_missed, otherwise,
2746 * it's zero. ipath->fspath->bytes_missing holds the number of bytes that would
2801 struct btrfs_data_container *fspath;
2803 fspath = init_data_container(total_bytes);
2804 if (IS_ERR(fspath))
2805 return ERR_CAST(fspath);
2809 kvfree(fspath);
2814 ifp->fspath = fspath;
2824 kvfree(ipath->fspath);