Skip to content

Commit 2decd65

Browse files
pibrochJoel Becker
authored andcommitted
ocfs2: Avoid to evaluate xattr block flags again.
It was evaludated to indexed before, check it is ok i think. Signed-off-by: Jeff Liu <jeff.liu@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
1 parent fc37189 commit 2decd65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ocfs2/xattr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7081,7 +7081,7 @@ static int ocfs2_reflink_xattr_in_block(struct ocfs2_xattr_reflink *args,
70817081
goto out;
70827082
}
70837083

7084-
if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED))
7084+
if (!indexed)
70857085
ret = ocfs2_reflink_xattr_block(args, blk_bh, new_blk_bh);
70867086
else
70877087
ret = ocfs2_reflink_xattr_tree(args, blk_bh, new_blk_bh);

0 commit comments

Comments
 (0)