]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.suse/ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.suse / ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch
1 From: Mark Fasheh <mfasheh@suse.com>
2 Subject: ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache
3 Patch-mainline: 2.6.28
4
5 i and b_len don't really need to be u64's. Xattr extent lengths should be
6 limited by the VFS, and then the size of our on-disk length field.
7
8 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
9 ---
10 fs/ocfs2/uptodate.c | 2 +-
11 1 files changed, 1 insertions(+), 1 deletions(-)
12
13 Index: linux-2.6.27/fs/ocfs2/uptodate.c
14 ===================================================================
15 --- linux-2.6.27.orig/fs/ocfs2/uptodate.c
16 +++ linux-2.6.27/fs/ocfs2/uptodate.c
17 @@ -562,7 +562,7 @@ void ocfs2_remove_xattr_clusters_from_ca
18 sector_t block,
19 u32 c_len)
20 {
21 - u64 i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len;
22 + unsigned int i, b_len = ocfs2_clusters_to_blocks(inode->i_sb, 1) * c_len;
23
24 for (i = 0; i < b_len; i++, block++)
25 ocfs2_remove_block_from_cache(inode, block);