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.
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.
10 Signed-off-by: Tao Ma <tao.ma@oracle.com>
11 Signed-off-by: Mark Fasheh <mfasheh@suse.com>
13 fs/ocfs2/xattr.c | 4 ++--
14 1 files changed, 2 insertions(+), 2 deletions(-)
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
24 - i = xs->here - old_xh->xh_entries;
25 - xs->here = &xs->header->xh_entries[i];
27 + i = xs->here - old_xh->xh_entries;
28 + xs->here = &xs->header->xh_entries[i];