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

From: Andrew Morton
Date: Thu Oct 02 2008 - 02:13:28 EST


> On Wed, 24 Sep 2008 15:00:51 -0700 Mark Fasheh <mfasheh@xxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/