/* Truncate a byte range, avoiding pages within partial clusters. This preserves those pages for the zeroing code to write to.  */
static void ocfs2_truncate_cluster_pages(struct inode *inode, u64 byte_start, u64 byte_len)
/* Truncate a byte range, avoiding pages within partial clusters. This preserves those pages for the zeroing code to write to.  */
static void ocfs2_truncate_cluster_pages(struct inode *inode, u64 byte_start, u64 byte_len)
{
	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
	loff_t start, end;
	struct address_space *mapping = inode->i_mapping;
	start = (loff_t)ocfs2_align_bytes_to_clusters(inode->i_sb, byte_start);
	end = byte_start + byte_len;
	end = end & ~(osb->s_clustersize - 1);
	if (start < end) {
		unmap_mapping_range(mapping, start, end - start, 0);
		truncate_inode_pages_range(mapping, start, end - 1);
	}
}