Lines Matching refs:want_clusters
2648 unsigned int want_clusters, rec_end = 0; in ocfs2_refcount_cal_cow_clusters() local
2719 want_clusters = write_len; in ocfs2_refcount_cal_cow_clusters()
2721 want_clusters = (cpos + write_len) - in ocfs2_refcount_cal_cow_clusters()
2723 if (want_clusters < contig_clusters) in ocfs2_refcount_cal_cow_clusters()
2724 want_clusters = contig_clusters; in ocfs2_refcount_cal_cow_clusters()
2744 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2745 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2747 if (leaf_clusters < want_clusters) in ocfs2_refcount_cal_cow_clusters()
2750 *cow_len += want_clusters; in ocfs2_refcount_cal_cow_clusters()
2766 } else if ((rec_end - cpos) <= want_clusters) { in ocfs2_refcount_cal_cow_clusters()
2792 want_clusters = (cpos + write_len) - *cow_start; in ocfs2_refcount_cal_cow_clusters()
2793 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2794 want_clusters); in ocfs2_refcount_cal_cow_clusters()
2795 if (*cow_start + want_clusters <= rec_end) in ocfs2_refcount_cal_cow_clusters()
2796 *cow_len = want_clusters; in ocfs2_refcount_cal_cow_clusters()