Lines Matching refs:want_clusters
2640 unsigned int want_clusters, rec_end = 0; in ocfs2_refcount_cal_cow_clusters() local
2711 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters()
2713 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2715 if (want_clusters < contig_clusters) in ocfs2_refcount_cal_cow_clusters()
2716 want_clusters = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2736 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2737 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2739 if (leaf_clusters < want_clusters) in ocfs2_refcount_cal_cow_clusters()
2742 *cow_len += want_clusters; in ocfs2_refcount_cal_cow_clusters()
2758 } else if ((rec_end - cpos) <= want_clusters) { in ocfs2_refcount_cal_cow_clusters()
2784 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2785 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2786 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2787 if (*cow_start + want_clusters <= rec_end) in ocfs2_refcount_cal_cow_clusters()
2788 *cow_len = want_clusters; in ocfs2_refcount_cal_cow_clusters()