Re: [PATCH 10/39] ocfs2: Add helper function in uptodate.c for removing xattr clusters

Andrew Morton
2008-10-02T06:13:28Z

> On Wed, 24 Sep 2008 15:00:51 -0700 Mark Fasheh <mfasheh@suse.com> wrote:
> +/* Called when we remove xattr clusters from an inode. */
> +void ocfs2_remove_xattr_clusters_from_cache(struct inode *inode,
> + sector_t block,
> + u32 c_len)
> +{
> + u64 i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len;
> +
> + for (i = 0; i < b_len; i++, block++)
> + ocfs2_remove_block_from_cache(inode, block);
> +}

I really really hope that `i' and `b_len' didn't really need to be
64-bit here.