diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-10-07 15:50:46 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-13 20:02:44 -0400 |
commit | fd8351f83d413b41da956109cf429c15881886e2 (patch) | |
tree | 86557f75dd1ab2f3b1ed7d8cda479d09f2e2372d | |
parent | 696b55d768ea5ebf38a369da615f8c956750ab3f (diff) |
ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache
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>
-rw-r--r-- | fs/ocfs2/uptodate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/uptodate.c b/fs/ocfs2/uptodate.c index 523514020891..187b99ff0368 100644 --- a/fs/ocfs2/uptodate.c +++ b/fs/ocfs2/uptodate.c | |||
@@ -562,7 +562,7 @@ void ocfs2_remove_xattr_clusters_from_cache(struct inode *inode, | |||
562 | sector_t block, | 562 | sector_t block, |
563 | u32 c_len) | 563 | u32 c_len) |
564 | { | 564 | { |
565 | u64 i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len; | 565 | unsigned int i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len; |
566 | 566 | ||
567 | for (i = 0; i < b_len; i++, block++) | 567 | for (i = 0; i < b_len; i++, block++) |
568 | ocfs2_remove_block_from_cache(inode, block); | 568 | ocfs2_remove_block_from_cache(inode, block); |