From: Tao Ma Date: Fri, 5 Dec 2008 01:14:10 +0000 (+0800) Subject: ocfs2: Always update xattr search when creating bucket. X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~13984^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=83099bc647688d816c2f7fac8e51921bdfe8db73;p=mirror_ubuntu-zesty-kernel.git ocfs2: Always update xattr search when creating bucket. When we create xattr bucket during the process of xattr set, we always need to update the ocfs2_xattr_search since even if the bucket size is the same as block size, the offset will change because of the removal of the ocfs2_xattr_block header. Signed-off-by: Tao Ma Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 054e2efb0b7e..74d7367ade13 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode, return ret; } - i = xs->here - old_xh->xh_entries; - xs->here = &xs->header->xh_entries[i]; } + i = xs->here - old_xh->xh_entries; + xs->here = &xs->header->xh_entries[i]; } return ret;