Lines Matching refs:cow_len
46 u32 cow_len; member
2627 u32 *cow_len) in ocfs2_refcount_cal_cow_clusters() argument
2659 *cow_len = 0; in ocfs2_refcount_cal_cow_clusters()
2673 if (*cow_len == 0) { in ocfs2_refcount_cal_cow_clusters()
2687 (*cow_len && rec_end != le32_to_cpu(rec->e_cpos)) || in ocfs2_refcount_cal_cow_clusters()
2704 if (!*cow_len) in ocfs2_refcount_cal_cow_clusters()
2708 (*cow_start + *cow_len); in ocfs2_refcount_cal_cow_clusters()
2721 *cow_len += leaf_clusters; in ocfs2_refcount_cal_cow_clusters()
2722 else if (*cow_len || (*cow_start == cpos)) { in ocfs2_refcount_cal_cow_clusters()
2734 *cow_len += leaf_clusters; in ocfs2_refcount_cal_cow_clusters()
2736 *cow_len += want_clusters; in ocfs2_refcount_cal_cow_clusters()
2744 *cow_len = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2751 *cow_len = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2765 *cow_len = rec_end - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2782 *cow_len = want_clusters; in ocfs2_refcount_cal_cow_clusters()
2784 *cow_len = rec_end - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2788 if ((*cow_start + *cow_len) >= (cpos + write_len)) in ocfs2_refcount_cal_cow_clusters()
3324 u32 cow_start = context->cow_start, cow_len = context->cow_len; in ocfs2_replace_cow() local
3336 while (cow_len) { in ocfs2_replace_cow()
3346 if (cow_len < num_clusters) in ocfs2_replace_cow()
3347 num_clusters = cow_len; in ocfs2_replace_cow()
3357 cow_len -= num_clusters; in ocfs2_replace_cow()
3379 u32 cow_start = 0, cow_len = 0; in ocfs2_refcount_cow_hunk() local
3390 &cow_start, &cow_len); in ocfs2_refcount_cow_hunk()
3398 cow_start, cow_len); in ocfs2_refcount_cow_hunk()
3400 BUG_ON(cow_len == 0); in ocfs2_refcount_cow_hunk()
3418 context->cow_len = cow_len; in ocfs2_refcount_cow_hunk()
3597 u32 cow_start, cow_len; in ocfs2_refcount_cow_xattr() local
3603 &cow_start, &cow_len); in ocfs2_refcount_cow_xattr()
3609 BUG_ON(cow_len == 0); in ocfs2_refcount_cow_xattr()
3620 context->cow_len = cow_len; in ocfs2_refcount_cow_xattr()
3628 ocfs2_clusters_to_blocks(inode->i_sb, 1) * cow_len; in ocfs2_refcount_cow_xattr()