projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696b55d
)
ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache
author
Mark Fasheh
<mfasheh@suse.com>
Tue, 7 Oct 2008 19:50:46 +0000
(12:50 -0700)
committer
Mark Fasheh
<mfasheh@suse.com>
Tue, 14 Oct 2008 00:02:44 +0000
(17:02 -0700)
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>
fs/ocfs2/uptodate.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/uptodate.c
b/fs/ocfs2/uptodate.c
index 523514020891f23c3d4e7be136e541b195bfb377..187b99ff03688992fc0f141390ca6bec667fa027 100644
(file)
--- a/
fs/ocfs2/uptodate.c
+++ b/
fs/ocfs2/uptodate.c
@@
-562,7
+562,7
@@
void ocfs2_remove_xattr_clusters_from_cache(struct inode *inode,
sector_t block,
u32 c_len)
{
- u
64
i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len;
+ u
nsigned 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);