Lines Matching defs:cpos

227 			"cpos %u, clusters %u\n",
1782 * Traverse a btree path in search of cpos, starting at root_el.
1784 * This code can be called with a cpos larger than the tree, in which
1788 struct ocfs2_extent_list *root_el, u32 cpos,
1815 * In the case that cpos is off the allocation
1821 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
1874 * which would contain cpos.
1895 struct ocfs2_path *path, u32 cpos)
1901 return __ocfs2_find_path(ci, path_root_el(path), cpos,
1918 * Find the leaf block in the tree which would contain cpos. No
1927 struct ocfs2_extent_list *root_el, u32 cpos,
1933 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh);
1964 * Interior nodes never have holes. Their cpos is the cpos of
1967 * - the range between their cpos and the cpos of the record
1981 * moving cpos - we will need to adjust clusters after
2205 * Given a full path, determine what cpos value would return us a path
2211 struct ocfs2_path *path, u32 *cpos)
2219 *cpos = 0;
2240 * cpos of zero.
2252 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos);
2253 *cpos = *cpos + ocfs2_rec_clusters(el,
2255 *cpos = *cpos - 1;
2300 * whose cpos is less than ours into the right leaf.
2323 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos)
2341 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
2370 u32 cpos;
2383 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2391 insert_cpos, cpos);
2410 * insert_cpos == cpos because cpos is only a _theoretical_
2414 * Stop at a cpos of '0' because we either started at the
2419 while (cpos && insert_cpos <= cpos) {
2423 insert_cpos, cpos);
2425 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
2434 "(left path cpos %u) results in two identical "
2437 insert_cpos, cpos,
2509 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2797 * Given a full path, determine what cpos value would return us a path
2806 struct ocfs2_path *path, u32 *cpos)
2812 *cpos = 0;
2839 * cpos of zero.
2851 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos);
3022 u32 cpos;
3038 path, &cpos);
3044 if (cpos) {
3056 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
3919 "rec.cpos %u, rec.clusters %u, "
3920 "insert.cpos %u, insert.clusters %u\n",
4078 u32 cpos = le32_to_cpu(split_rec->e_cpos);
4088 index = ocfs2_search_extent_list(el, cpos);
4126 index = ocfs2_search_extent_list(left_el, cpos);
4139 index = ocfs2_search_extent_list(el, cpos);
4244 u32 cpos;
4275 cpos = le32_to_cpu(insert_rec->e_cpos);
4279 cpos = UINT_MAX;
4282 ret = ocfs2_find_path(et->et_ci, right_path, cpos);
4529 u32 cpos = le32_to_cpu(insert_rec->e_cpos);
4548 if (cpos >=
4703 u32 cpos,
4717 cpos, new_clusters);
4720 rec.e_cpos = cpu_to_le32(cpos);
4885 u32 cpos,
4893 split_rec->e_cpos = cpu_to_le32(cpos);
4894 split_rec->e_leaf_clusters = cpu_to_le16(rec_range - cpos);
4898 ocfs2_clusters_to_blocks(sb, cpos - rec_cpos));
4983 u32 cpos;
4991 cpos = le32_to_cpu(split_rec.e_cpos);
4992 ret = ocfs2_find_path(et->et_ci, path, cpos);
4999 split_index = ocfs2_search_extent_list(el, cpos);
5002 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5004 cpos);
5139 * Change the flags of the already-existing extent at cpos for len clusters.
5152 u32 cpos, u32 len, u32 phys,
5172 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
5179 index = ocfs2_search_extent_list(el, cpos);
5182 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5184 cpos);
5208 split_rec.e_cpos = cpu_to_le32(cpos);
5230 * Mark the already-existing extent at cpos as written for len clusters.
5240 handle_t *handle, u32 cpos, u32 len, u32 phys,
5248 cpos, len, phys);
5263 ret = ocfs2_change_extent_flag(handle, et, cpos,
5346 u32 cpos, u32 len)
5391 le32_to_cpu(rec->e_cpos) == cpos) {
5449 trunc_range = cpos + len;
5451 if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) {
5467 } else if (le32_to_cpu(rec->e_cpos) == cpos) {
5483 le16_to_cpu(rec->e_leaf_clusters), cpos, len);
5508 u32 cpos, u32 len,
5531 ret = ocfs2_find_path(et->et_ci, path, cpos);
5538 index = ocfs2_search_extent_list(el, cpos);
5541 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5543 cpos);
5566 trunc_range = cpos + len;
5568 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range);
5572 cpos, len, index, le32_to_cpu(rec->e_cpos),
5575 if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) {
5577 cpos, len);
5596 ret = ocfs2_find_path(et->et_ci, path, cpos);
5603 index = ocfs2_search_extent_list(el, cpos);
5606 "Owner %llu: split at cpos %u lost record\n",
5608 cpos);
5622 "Owner %llu: error after split at cpos %u trunc len %u, existing record is (%u,%u)\n",
5624 cpos, len, le32_to_cpu(rec->e_cpos),
5631 cpos, len);
5694 u32 cpos, u32 phys_cpos, u32 len, int flags,
5765 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc);