]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.fixes/ocfs2-Always-update-xattr-search-when-creating-buck.patch
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.fixes / ocfs2-Always-update-xattr-search-when-creating-buck.patch
1 From: Tao Ma <tao.ma@oracle.com>
2 Date: Fri, 5 Dec 2008 09:14:10 +0800
3 Subject: ocfs2: Always update xattr search when creating bucket.
4
5 When we create xattr bucket during the process of xattr set, we always
6 need to update the ocfs2_xattr_search since even if the bucket size is
7 the same as block size, the offset will change because of the removal
8 of the ocfs2_xattr_block header.
9
10 Signed-off-by: Tao Ma <tao.ma@oracle.com>
11 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
12 ---
13 fs/ocfs2/xattr.c | 4 ++--
14 1 files changed, 2 insertions(+), 2 deletions(-)
15
16 Index: 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;