]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.suse/ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch
diff --git a/src/patches/suse-2.6.27.31/patches.suse/ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch b/src/patches/suse-2.6.27.31/patches.suse/ocfs2-use-smaller-counters-in-ocfs2_remove_xattr_cl.patch
new file mode 100644 (file)
index 0000000..301fd03
--- /dev/null
@@ -0,0 +1,25 @@
+From: Mark Fasheh <mfasheh@suse.com>
+Subject: ocfs2: use smaller counters in ocfs2_remove_xattr_clusters_from_cache
+Patch-mainline: 2.6.28
+
+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 |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+Index: linux-2.6.27/fs/ocfs2/uptodate.c
+===================================================================
+--- linux-2.6.27.orig/fs/ocfs2/uptodate.c
++++ linux-2.6.27/fs/ocfs2/uptodate.c
+@@ -562,7 +562,7 @@ void ocfs2_remove_xattr_clusters_from_ca
+                                           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);