Skip to content

Commit

Permalink
ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache
Browse files Browse the repository at this point in the history
i and b_len don't really need to be u64's. Xattr extent lengths should be
limited by the VFS, and then the size of our on-disk length field.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Mark Fasheh committed Oct 14, 2008
1 parent 696b55d commit fd8351f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/uptodate.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ 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;
unsigned int 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);
Expand Down

0 comments on commit fd8351f

Please sign in to comment.