Lines Matching defs:cpos
225 "cpos %u, clusters %u\n",
1787 * Traverse a btree path in search of cpos, starting at root_el.
1789 * This code can be called with a cpos larger than the tree, in which
1793 struct ocfs2_extent_list *root_el, u32 cpos,
1820 * In the case that cpos is off the allocation
1826 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
1879 * which would contain cpos.
1900 struct ocfs2_path *path, u32 cpos)
1906 return __ocfs2_find_path(ci, path_root_el(path), cpos,
1923 * Find the leaf block in the tree which would contain cpos. No
1932 struct ocfs2_extent_list *root_el, u32 cpos,
1938 ret = __ocfs2_find_path(ci, root_el, cpos, find_leaf_ins, &bh);
1969 * Interior nodes never have holes. Their cpos is the cpos of
1972 * - the range between their cpos and the cpos of the record
1986 * moving cpos - we will need to adjust clusters after
2210 * Given a full path, determine what cpos value would return us a path
2216 struct ocfs2_path *path, u32 *cpos)
2224 *cpos = 0;
2245 * cpos of zero.
2257 *cpos = le32_to_cpu(el->l_recs[j - 1].e_cpos);
2258 *cpos = *cpos + ocfs2_rec_clusters(el,
2260 *cpos = *cpos - 1;
2305 * whose cpos is less than ours into the right leaf.
2328 static int ocfs2_leftmost_rec_contains(struct ocfs2_extent_list *el, u32 cpos)
2346 if (cpos >= le32_to_cpu(rec->e_cpos) && cpos < range)
2375 u32 cpos;
2388 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2396 insert_cpos, cpos);
2415 * insert_cpos == cpos because cpos is only a _theoretical_
2419 * Stop at a cpos of '0' because we either started at the
2424 while (cpos && insert_cpos <= cpos) {
2428 insert_cpos, cpos);
2430 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
2439 "(left path cpos %u) results in two identical "
2442 insert_cpos, cpos,
2514 ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
2802 * Given a full path, determine what cpos value would return us a path
2811 struct ocfs2_path *path, u32 *cpos)
2817 *cpos = 0;
2844 * cpos of zero.
2856 *cpos = le32_to_cpu(el->l_recs[j + 1].e_cpos);
3027 u32 cpos;
3043 path, &cpos);
3049 if (cpos) {
3061 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
3924 "rec.cpos %u, rec.clusters %u, "
3925 "insert.cpos %u, insert.clusters %u\n",
4083 u32 cpos = le32_to_cpu(split_rec->e_cpos);
4093 index = ocfs2_search_extent_list(el, cpos);
4131 index = ocfs2_search_extent_list(left_el, cpos);
4144 index = ocfs2_search_extent_list(el, cpos);
4249 u32 cpos;
4280 cpos = le32_to_cpu(insert_rec->e_cpos);
4284 cpos = UINT_MAX;
4287 ret = ocfs2_find_path(et->et_ci, right_path, cpos);
4534 u32 cpos = le32_to_cpu(insert_rec->e_cpos);
4553 if (cpos >=
4708 u32 cpos,
4722 cpos, new_clusters);
4725 rec.e_cpos = cpu_to_le32(cpos);
4890 u32 cpos,
4898 split_rec->e_cpos = cpu_to_le32(cpos);
4899 split_rec->e_leaf_clusters = cpu_to_le16(rec_range - cpos);
4903 ocfs2_clusters_to_blocks(sb, cpos - rec_cpos));
4988 u32 cpos;
4996 cpos = le32_to_cpu(split_rec.e_cpos);
4997 ret = ocfs2_find_path(et->et_ci, path, cpos);
5004 split_index = ocfs2_search_extent_list(el, cpos);
5007 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5009 cpos);
5144 * Change the flags of the already-existing extent at cpos for len clusters.
5157 u32 cpos, u32 len, u32 phys,
5177 ret = ocfs2_find_path(et->et_ci, left_path, cpos);
5184 index = ocfs2_search_extent_list(el, cpos);
5187 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5189 cpos);
5213 split_rec.e_cpos = cpu_to_le32(cpos);
5235 * Mark the already-existing extent at cpos as written for len clusters.
5245 handle_t *handle, u32 cpos, u32 len, u32 phys,
5253 cpos, len, phys);
5268 ret = ocfs2_change_extent_flag(handle, et, cpos,
5351 u32 cpos, u32 len)
5396 le32_to_cpu(rec->e_cpos) == cpos) {
5454 trunc_range = cpos + len;
5456 if (le32_to_cpu(rec->e_cpos) == cpos && rec_range == trunc_range) {
5472 } else if (le32_to_cpu(rec->e_cpos) == cpos) {
5488 le16_to_cpu(rec->e_leaf_clusters), cpos, len);
5513 u32 cpos, u32 len,
5536 ret = ocfs2_find_path(et->et_ci, path, cpos);
5543 index = ocfs2_search_extent_list(el, cpos);
5546 "Owner %llu has an extent at cpos %u which can no longer be found\n",
5548 cpos);
5571 trunc_range = cpos + len;
5573 BUG_ON(cpos < le32_to_cpu(rec->e_cpos) || trunc_range > rec_range);
5577 cpos, len, index, le32_to_cpu(rec->e_cpos),
5580 if (le32_to_cpu(rec->e_cpos) == cpos || rec_range == trunc_range) {
5582 cpos, len);
5601 ret = ocfs2_find_path(et->et_ci, path, cpos);
5608 index = ocfs2_search_extent_list(el, cpos);
5611 "Owner %llu: split at cpos %u lost record\n",
5613 cpos);
5627 "Owner %llu: error after split at cpos %u trunc len %u, existing record is (%u,%u)\n",
5629 cpos, len, le32_to_cpu(rec->e_cpos),
5636 cpos, len);
5699 u32 cpos, u32 phys_cpos, u32 len, int flags,
5770 ret = ocfs2_remove_extent(handle, et, cpos, len, meta_ac, dealloc);