]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-Always-update-xattr-search-when-creating-buck.patch
Revert "Move xen patchset to new version's subdir."
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-Always-update-xattr-search-when-creating-buck.patch
CommitLineData
00e5a55c
BS
1From: Tao Ma <tao.ma@oracle.com>
2Date: Fri, 5 Dec 2008 09:14:10 +0800
3Subject: ocfs2: Always update xattr search when creating bucket.
4
5When we create xattr bucket during the process of xattr set, we always
6need to update the ocfs2_xattr_search since even if the bucket size is
7the same as block size, the offset will change because of the removal
8of the ocfs2_xattr_block header.
9
10Signed-off-by: Tao Ma <tao.ma@oracle.com>
11Signed-off-by: Mark Fasheh <mfasheh@suse.com>
12---
13 fs/ocfs2/xattr.c | 4 ++--
14 1 files changed, 2 insertions(+), 2 deletions(-)
15
16Index: linux-2.6.27-ocfs2/fs/ocfs2/xattr.c
17===================================================================
18--- linux-2.6.27-ocfs2.orig/fs/ocfs2/xattr.c
19+++ linux-2.6.27-ocfs2/fs/ocfs2/xattr.c
20@@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_sear
21 return ret;
22 }
23
24- i = xs->here - old_xh->xh_entries;
25- xs->here = &xs->header->xh_entries[i];
26 }
27+ i = xs->here - old_xh->xh_entries;
28+ xs->here = &xs->header->xh_entries[i];
29 }
30
31 return ret;