Lines Matching defs:fspath
2710 char *fspath;
2712 int i = ipath->fspath->elem_cnt;
2716 bytes_left = ipath->fspath->bytes_left > s_ptr ?
2717 ipath->fspath->bytes_left - s_ptr : 0;
2719 fspath_min = (char *)ipath->fspath->val + (i + 1) * s_ptr;
2720 fspath = btrfs_ref_to_path(ipath->fs_root, ipath->btrfs_path, name_len,
2722 if (IS_ERR(fspath))
2723 return PTR_ERR(fspath);
2725 if (fspath > fspath_min) {
2726 ipath->fspath->val[i] = (u64)(unsigned long)fspath;
2727 ++ipath->fspath->elem_cnt;
2728 ipath->fspath->bytes_left = fspath - fspath_min;
2730 ++ipath->fspath->elem_missed;
2731 ipath->fspath->bytes_missing += fspath_min - fspath;
2732 ipath->fspath->bytes_left = 0;
2741 * from ipath->fspath->val[i].
2742 * when it returns, there are ipath->fspath->elem_cnt number of paths available
2743 * in ipath->fspath->val[]. when the allocated space wasn't sufficient, the
2744 * number of missed paths is recorded in ipath->fspath->elem_missed, otherwise,
2745 * it's zero. ipath->fspath->bytes_missing holds the number of bytes that would
2794 struct btrfs_data_container *fspath;
2796 fspath = init_data_container(total_bytes);
2797 if (IS_ERR(fspath))
2798 return ERR_CAST(fspath);
2802 kvfree(fspath);
2807 ifp->fspath = fspath;