Lines Matching refs:want_clusters
2634 unsigned int want_clusters, rec_end = 0; in ocfs2_refcount_cal_cow_clusters() local
2705 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters()
2707 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2709 if (want_clusters < contig_clusters) in ocfs2_refcount_cal_cow_clusters()
2710 want_clusters = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2730 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2731 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2733 if (leaf_clusters < want_clusters) in ocfs2_refcount_cal_cow_clusters()
2736 *cow_len += want_clusters; in ocfs2_refcount_cal_cow_clusters()
2752 } else if ((rec_end - cpos) <= want_clusters) { in ocfs2_refcount_cal_cow_clusters()
2778 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2779 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2780 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2781 if (*cow_start + want_clusters <= rec_end) in ocfs2_refcount_cal_cow_clusters()
2782 *cow_len = want_clusters; in ocfs2_refcount_cal_cow_clusters()