Lines Matching refs:cpos

61 				      u32 cpos, u32 old_cluster,
876 u64 cpos, unsigned int len, in ocfs2_find_refcount_rec_in_rl() argument
889 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl()
891 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl()
902 ret_rec->r_cpos = cpu_to_le64(cpos); in ocfs2_find_refcount_rec_in_rl()
905 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl()
907 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl()
963 u32 cpos; in ocfs2_get_refcount_cpos_end() local
1003 cpos = le32_to_cpu(eb->h_list.l_recs[index].e_cpos); in ocfs2_get_refcount_cpos_end()
1004 ret = ocfs2_find_path(ci, left_path, cpos); in ocfs2_get_refcount_cpos_end()
1017 ret = ocfs2_find_cpos_for_right_leaf(sb, left_path, &cpos); in ocfs2_get_refcount_cpos_end()
1023 ret = ocfs2_find_path(ci, right_path, cpos); in ocfs2_get_refcount_cpos_end()
1058 u64 cpos, unsigned int len, in ocfs2_get_refcount_rec() argument
1074 ocfs2_find_refcount_rec_in_rl(ci, ref_root_bh, cpos, len, in ocfs2_get_refcount_rec()
1082 low_cpos = cpos & OCFS2_32BIT_POS_MASK; in ocfs2_get_refcount_rec()
1132 ocfs2_find_refcount_rec_in_rl(ci, ref_leaf_bh, cpos, len, in ocfs2_get_refcount_rec()
1451 u32 cpos = 0; in ocfs2_divide_leaf_refcount_block() local
1479 ret = ocfs2_find_refcount_split_pos(rl, &cpos, &split_index); in ocfs2_divide_leaf_refcount_block()
1485 new_rb->rf_cpos = cpu_to_le32(cpos); in ocfs2_divide_leaf_refcount_block()
1508 *split_cpos = cpos; in ocfs2_divide_leaf_refcount_block()
1751 u64 cpos = le64_to_cpu(rec->r_cpos); in ocfs2_insert_refcount_rec() local
1762 cpos, len, NULL, &index, in ocfs2_insert_refcount_rec()
1878 u64 cpos = le64_to_cpu(orig_rec->r_cpos); in ocfs2_split_refcount_rec() local
1892 cpos, len, &tmp_rec, &index, in ocfs2_split_refcount_rec()
1981 u64 cpos, u32 len, int merge, in __ocfs2_increase_refcount() argument
1992 (unsigned long long)cpos, len); in __ocfs2_increase_refcount()
1996 cpos, len, &rec, &index, in __ocfs2_increase_refcount()
2015 if (rec.r_refcount && le64_to_cpu(rec.r_cpos) == cpos && in __ocfs2_increase_refcount()
2018 (unsigned long long)cpos, set_len, in __ocfs2_increase_refcount()
2042 set_len = min((u64)(cpos + len), in __ocfs2_increase_refcount()
2043 le64_to_cpu(rec.r_cpos) + set_len) - cpos; in __ocfs2_increase_refcount()
2044 rec.r_cpos = cpu_to_le64(cpos); in __ocfs2_increase_refcount()
2061 cpos += set_len; in __ocfs2_increase_refcount()
2155 u64 cpos, u32 len, in ocfs2_increase_refcount() argument
2160 cpos, len, 1, in ocfs2_increase_refcount()
2168 int index, u64 cpos, unsigned int len, in ocfs2_decrease_refcount_rec() argument
2177 BUG_ON(cpos < le64_to_cpu(rec->r_cpos)); in ocfs2_decrease_refcount_rec()
2178 BUG_ON(cpos + len > in ocfs2_decrease_refcount_rec()
2183 (unsigned long long)cpos, len); in ocfs2_decrease_refcount_rec()
2185 if (cpos == le64_to_cpu(rec->r_cpos) && in ocfs2_decrease_refcount_rec()
2191 split.r_cpos = cpu_to_le64(cpos); in ocfs2_decrease_refcount_rec()
2223 u64 cpos, u32 len, in __ocfs2_decrease_refcount() argument
2236 (unsigned long long)cpos, len, delete); in __ocfs2_decrease_refcount()
2240 cpos, len, &rec, &index, in __ocfs2_decrease_refcount()
2252 r_len = min((u64)(cpos + len), le64_to_cpu(rec.r_cpos) + in __ocfs2_decrease_refcount()
2253 le32_to_cpu(rec.r_clusters)) - cpos; in __ocfs2_decrease_refcount()
2257 cpos, r_len, in __ocfs2_decrease_refcount()
2266 ocfs2_clusters_to_blocks(sb, cpos), in __ocfs2_decrease_refcount()
2274 cpos += r_len; in __ocfs2_decrease_refcount()
2287 handle_t *handle, u32 cpos, u32 len, in ocfs2_decrease_refcount() argument
2319 cpos, len, meta_ac, dealloc, delete); in ocfs2_decrease_refcount()
2338 handle_t *handle, u32 cpos, in ocfs2_mark_extent_refcounted() argument
2346 cpos, len, phys); in ocfs2_mark_extent_refcounted()
2354 ret = ocfs2_change_extent_flag(handle, et, cpos, in ocfs2_mark_extent_refcounted()
2377 u64 cpos = start_cpos; in ocfs2_calc_refcount_meta_credits() local
2385 cpos, clusters, &rec, in ocfs2_calc_refcount_meta_credits()
2415 recs_add, (unsigned long long)cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2420 len = min((u64)cpos + clusters, le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2421 le32_to_cpu(rec.r_clusters)) - cpos; in ocfs2_calc_refcount_meta_credits()
2444 if (cpos == start_cpos && in ocfs2_calc_refcount_meta_credits()
2445 cpos != le64_to_cpu(rec.r_cpos)) in ocfs2_calc_refcount_meta_credits()
2449 if (cpos + clusters < le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2458 cpos += len; in ocfs2_calc_refcount_meta_credits()
2591 unsigned int cpos) in ocfs2_cow_align_start() argument
2593 BUG_ON(start > cpos); in ocfs2_cow_align_start()
2595 return start + ((cpos - start) & ocfs2_cow_contig_mask(sb)); in ocfs2_cow_align_start()
2629 u32 cpos, in ocfs2_refcount_cal_cow_clusters() argument
2644 BUG_ON(cpos + write_len > max_cpos); in ocfs2_refcount_cal_cow_clusters()
2647 ret = ocfs2_find_leaf(INODE_CACHE(inode), el, cpos, &eb_bh); in ocfs2_refcount_cal_cow_clusters()
2676 le16_to_cpu(rec->e_leaf_clusters) <= cpos) in ocfs2_refcount_cal_cow_clusters()
2713 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2728 else if (*cow_len || (*cow_start == cpos)) { in ocfs2_refcount_cal_cow_clusters()
2744 (cpos + write_len)) { in ocfs2_refcount_cal_cow_clusters()
2751 } else if ((rec_end - cpos) <= contig_clusters) { in ocfs2_refcount_cal_cow_clusters()
2758 } else if ((rec_end - cpos) <= want_clusters) { in ocfs2_refcount_cal_cow_clusters()
2770 *cow_start, cpos); in ocfs2_refcount_cal_cow_clusters()
2782 *cow_start, cpos); in ocfs2_refcount_cal_cow_clusters()
2784 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2794 if ((*cow_start + *cow_len) >= (cpos + write_len)) in ocfs2_refcount_cal_cow_clusters()
2905 u32 cpos, u32 old_cluster, in ocfs2_duplicate_clusters_by_page() argument
2917 trace_ocfs2_duplicate_clusters_by_page(cpos, old_cluster, in ocfs2_duplicate_clusters_by_page()
2920 offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_duplicate_clusters_by_page()
3000 u32 cpos, u32 old_cluster, in ocfs2_duplicate_clusters_by_jbd() argument
3013 trace_ocfs2_duplicate_clusters_by_page(cpos, old_cluster, in ocfs2_duplicate_clusters_by_jbd()
3055 u32 cpos, u32 p_cluster, u32 len, in ocfs2_clear_ext_refcount() argument
3068 cpos, len, p_cluster, ext_flags); in ocfs2_clear_ext_refcount()
3071 replace_rec.e_cpos = cpu_to_le32(cpos); in ocfs2_clear_ext_refcount()
3085 ret = ocfs2_find_path(et->et_ci, path, cpos); in ocfs2_clear_ext_refcount()
3093 index = ocfs2_search_extent_list(el, cpos); in ocfs2_clear_ext_refcount()
3097 (unsigned long long)ino, cpos); in ocfs2_clear_ext_refcount()
3113 u32 cpos, u32 old, in ocfs2_replace_clusters() argument
3122 cpos, old, new, len, ext_flags); in ocfs2_replace_clusters()
3127 cpos, old, new, len); in ocfs2_replace_clusters()
3135 cpos, new, len, ext_flags, in ocfs2_replace_clusters()
3145 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3155 offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_cow_sync_writeback()
3204 u32 cpos, u32 p_cluster, in ocfs2_make_clusters_writable() argument
3216 trace_ocfs2_make_clusters_writable(cpos, p_cluster, in ocfs2_make_clusters_writable()
3268 cpos, p_cluster, in ocfs2_make_clusters_writable()
3289 cpos, p_cluster, new_bit, in ocfs2_make_clusters_writable()
3308 cpos += set_len; in ocfs2_make_clusters_writable()
3330 ret = ocfs2_cow_sync_writeback(sb, context->inode, cpos, in ocfs2_make_clusters_writable()
3409 u32 cpos, u32 write_len, u32 max_cpos) in ocfs2_refcount_cow_hunk() argument
3422 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
3430 cpos, write_len, max_cpos, in ocfs2_refcount_cow_hunk()
3485 u32 cpos, u32 write_len, u32 max_cpos) in ocfs2_refcount_cow() argument
3492 ret = ocfs2_get_clusters(inode, cpos, &p_cluster, in ocfs2_refcount_cow()
3503 ret = ocfs2_refcount_cow_hunk(inode, di_bh, cpos, in ocfs2_refcount_cow()
3512 cpos += num_clusters; in ocfs2_refcount_cow()
3543 u32 cpos = 0, clusters = le32_to_cpu(xv->xr_clusters); in ocfs2_refcounted_xattr_delete_need() local
3548 while (cpos < clusters) { in ocfs2_refcounted_xattr_delete_need()
3549 ret = ocfs2_xattr_get_clusters(inode, cpos, &p_cluster, in ocfs2_refcounted_xattr_delete_need()
3557 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3624 u32 cpos, u32 write_len, in ocfs2_refcount_cow_xattr() argument
3635 cpos, write_len, UINT_MAX, in ocfs2_refcount_cow_xattr()
3685 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3729 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3803 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3834 cpos = 0; in ocfs2_attach_refcount_tree()
3835 while (cpos < clusters) { in ocfs2_attach_refcount_tree()
3836 ret = ocfs2_get_clusters(inode, cpos, &p_cluster, in ocfs2_attach_refcount_tree()
3845 ref_root_bh, cpos, in ocfs2_attach_refcount_tree()
3855 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3898 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3925 ret = ocfs2_insert_extent(handle, et, cpos, in ocfs2_add_refcounted_extent()
4005 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
4015 cpos = 0; in ocfs2_duplicate_extent_list()
4016 while (cpos < clusters) { in ocfs2_duplicate_extent_list()
4017 ret = ocfs2_get_clusters(s_inode, cpos, &p_cluster, in ocfs2_duplicate_extent_list()
4026 cpos, p_cluster, in ocfs2_duplicate_extent_list()
4036 cpos += num_clusters; in ocfs2_duplicate_extent_list()