]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ocfs2: Always update xattr search when creating bucket.
authorTao Ma <tao.ma@oracle.com>
Fri, 5 Dec 2008 01:14:10 +0000 (09:14 +0800)
committerMark Fasheh <mfasheh@suse.com>
Tue, 16 Dec 2008 22:07:37 +0000 (14:07 -0800)
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 <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c

index 054e2efb0b7e71f196025c777d61f2cc5954e0f9..74d7367ade13e1e36cb74a13327ca65573fabf86 100644 (file)
@@ -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;