Commit 83099bc647688d816c2f7fac8e51921bdfe8db73

Authored by Tao Ma
Committed by Mark Fasheh
1 parent 1bda71282d

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 <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -2645,9 +2645,9 @@
2645 2645 return ret;
2646 2646 }
2647 2647  
2648   - i = xs->here - old_xh->xh_entries;
2649   - xs->here = &xs->header->xh_entries[i];
2650 2648 }
  2649 + i = xs->here - old_xh->xh_entries;
  2650 + xs->here = &xs->header->xh_entries[i];
2651 2651 }
2652 2652  
2653 2653 return ret;