Lines Matching refs:cow_len

47 	u32 cow_len;  member
2633 u32 *cow_len) in ocfs2_refcount_cal_cow_clusters() argument
2665 *cow_len = 0; in ocfs2_refcount_cal_cow_clusters()
2679 if (*cow_len == 0) { in ocfs2_refcount_cal_cow_clusters()
2693 (*cow_len && rec_end != le32_to_cpu(rec->e_cpos)) || in ocfs2_refcount_cal_cow_clusters()
2710 if (!*cow_len) in ocfs2_refcount_cal_cow_clusters()
2714 (*cow_start + *cow_len); in ocfs2_refcount_cal_cow_clusters()
2727 *cow_len += leaf_clusters; in ocfs2_refcount_cal_cow_clusters()
2728 else if (*cow_len || (*cow_start == cpos)) { in ocfs2_refcount_cal_cow_clusters()
2740 *cow_len += leaf_clusters; in ocfs2_refcount_cal_cow_clusters()
2742 *cow_len += want_clusters; in ocfs2_refcount_cal_cow_clusters()
2750 *cow_len = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2757 *cow_len = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2771 *cow_len = rec_end - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2788 *cow_len = want_clusters; in ocfs2_refcount_cal_cow_clusters()
2790 *cow_len = rec_end - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2794 if ((*cow_start + *cow_len) >= (cpos + write_len)) in ocfs2_refcount_cal_cow_clusters()
3357 u32 cow_start = context->cow_start, cow_len = context->cow_len; in ocfs2_replace_cow() local
3369 while (cow_len) { in ocfs2_replace_cow()
3379 if (cow_len < num_clusters) in ocfs2_replace_cow()
3380 num_clusters = cow_len; in ocfs2_replace_cow()
3390 cow_len -= num_clusters; in ocfs2_replace_cow()
3412 u32 cow_start = 0, cow_len = 0; in ocfs2_refcount_cow_hunk() local
3423 &cow_start, &cow_len); in ocfs2_refcount_cow_hunk()
3431 cow_start, cow_len); in ocfs2_refcount_cow_hunk()
3433 BUG_ON(cow_len == 0); in ocfs2_refcount_cow_hunk()
3451 context->cow_len = cow_len; in ocfs2_refcount_cow_hunk()
3630 u32 cow_start, cow_len; in ocfs2_refcount_cow_xattr() local
3636 &cow_start, &cow_len); in ocfs2_refcount_cow_xattr()
3642 BUG_ON(cow_len == 0); in ocfs2_refcount_cow_xattr()
3653 context->cow_len = cow_len; in ocfs2_refcount_cow_xattr()
3661 ocfs2_clusters_to_blocks(inode->i_sb, 1) * cow_len; in ocfs2_refcount_cow_xattr()