Skip to content

Commit 83099bc

Browse files
Tao MaMark Fasheh
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
1 parent 1bda712 commit 83099bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ocfs2/xattr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode,
26452645
return ret;
26462646
}
26472647

2648-
i = xs->here - old_xh->xh_entries;
2649-
xs->here = &xs->header->xh_entries[i];
26502648
}
2649+
i = xs->here - old_xh->xh_entries;
2650+
xs->here = &xs->header->xh_entries[i];
26512651
}
26522652

26532653
return ret;

0 commit comments

Comments
 (0)