/* Given a cluster count of len, pad it out so that it is a multiple of contig_clusters.  */
static unsigned int ocfs2_cow_align_length(struct super_block *sb, unsigned int len)
/* Given a cluster count of len, pad it out so that it is a multiple of contig_clusters.  */
static unsigned int ocfs2_cow_align_length(struct super_block *sb, unsigned int len)
{
	unsigned int padded =
		(len + (ocfs2_cow_contig_clusters(sb) - 1)) &
		ocfs2_cow_contig_mask(sb);
	if (padded < len)
		padded = UINT_MAX;
	return padded;
}