Lines Matching refs:cpos
225 "cpos %u, clusters %u\n",
1780 * Traverse a btree path in search of cpos, starting at root_el.
1782 * This code can be called with a cpos larger than the tree, in which
1786 struct ocfs2_extent_list *root_el, u32 cpos,
1813 * In the case that cpos is off the allocation
1819 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
1872 * which would contain cpos.
1893 struct ocfs2_path *path, u32 cpos)
1899 return __ocfs2_find_path(ci, path_root_el(path), cpos,
1916 * Find the leaf block in the tree which would contain cpos. No
1925 struct ocfs2_extent_list *root_el, u32 cpos,
1931 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh);
1962 * Interior nodes never have holes. Their cpos is the cpos of
1965 * - the range between their cpos and the cpos of the record
1979 * moving cpos - we will need to adjust clusters after
2203 * Given a full path, determine what cpos value would return us a path
2209 struct ocfs2_path *path, u32 *cpos)
2217 *cpos = 0;
2238 * cpos of zero.
2250 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos);
2251 *cpos = *cpos + ocfs2_rec_clusters(el,
2253 *cpos = *cpos - 1;
2298 * whose cpos is less than ours into the right leaf.
2321 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos)
2339 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
2368 u32 cpos;
2381 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2389 insert_cpos, cpos);
2408 * insert_cpos == cpos because cpos is only a _theoretical_
2412 * Stop at a cpos of '0' because we either started at the
2417 while (cpos && insert_cpos <= cpos) {
2421 insert_cpos, cpos);
2423 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
2432 "(left path cpos %u) results in two identical "
2435 insert_cpos, cpos,
2507 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2795 * Given a full path, determine what cpos value would return us a path
2804 struct ocfs2_path *path, u32 *cpos)
2810 *cpos = 0;
2837 * cpos of zero.
2849 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos);
3020 u32 cpos;
3036 path, &cpos);
3042 if (cpos) {
3054 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
3917 "rec.cpos %u, rec.clusters %u, "
3918 "insert.cpos %u, insert.clusters %u\n",
4076 u32 cpos = le32_to_cpu(split_rec->e_cpos);
4086 index = ocfs2_search_extent_list(el, cpos);
4124 index = ocfs2_search_extent_list(left_el, cpos);
4137 index = ocfs2_search_extent_list(el, cpos);
4242 u32 cpos;
4273 cpos = le32_to_cpu(insert_rec->e_cpos);
4277 cpos = UINT_MAX;
4280 ret = ocfs2_find_path(et->et_ci, right_path, cpos);
4527 u32 cpos = le32_to_cpu(insert_rec->e_cpos);
4546 if (cpos >=
4701 u32 cpos,
4715 cpos, new_clusters);
4718 rec.e_cpos = cpu_to_le32(cpos);
4883 u32 cpos,
4891 split_rec->e_cpos = cpu_to_le32(cpos);
4892 split_rec->e_leaf_clusters = cpu_to_le16(rec_range - cpos);
4896 ocfs2_clusters_to_blocks(sb, cpos - rec_cpos));
4981 u32 cpos;
4989 cpos = le32_to_cpu(split_rec.e_cpos);
4990 ret = ocfs2_find_path(et->et_ci, path, cpos);
4997 split_index = ocfs2_search_extent_list(el, cpos);
5000 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5002 cpos);
5137 * Change the flags of the already-existing extent at cpos for len clusters.
5150 u32 cpos, u32 len, u32 phys,
5170 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
5177 index = ocfs2_search_extent_list(el, cpos);
5180 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5182 cpos);
5206 split_rec.e_cpos = cpu_to_le32(cpos);
5228 * Mark the already-existing extent at cpos as written for len clusters.
5238 handle_t *handle, u32 cpos, u32 len, u32 phys,
5246 cpos, len, phys);
5261 ret = ocfs2_change_extent_flag(handle, et, cpos,
5344 u32 cpos, u32 len)
5389 le32_to_cpu(rec->e_cpos) == cpos) {
5447 trunc_range = cpos + len;
5449 if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) {
5465 } else if (le32_to_cpu(rec->e_cpos) == cpos) {
5481 le16_to_cpu(rec->e_leaf_clusters), cpos, len);
5506 u32 cpos, u32 len,
5529 ret = ocfs2_find_path(et->et_ci, path, cpos);
5536 index = ocfs2_search_extent_list(el, cpos);
5539 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5541 cpos);
5564 trunc_range = cpos + len;
5566 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range);
5570 cpos, len, index, le32_to_cpu(rec->e_cpos),
5573 if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) {
5575 cpos, len);
5594 ret = ocfs2_find_path(et->et_ci, path, cpos);
5601 index = ocfs2_search_extent_list(el, cpos);
5604 "Owner %llu: split at cpos %u lost record\n",
5606 cpos);
5620 "Owner %llu: error after split at cpos %u trunc len %u, existing record is (%u,%u)\n",
5622 cpos, len, le32_to_cpu(rec->e_cpos),
5629 cpos, len);
5692 u32 cpos, u32 phys_cpos, u32 len, int flags,
5763 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc);