Commit 2decd65a2630633cee04d0b83fdcee46ad2989a1

Authored by Jeff Liu
Committed by Joel Becker
1 parent fc3718918f

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>

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

... ... @@ -7081,7 +7081,7 @@
7081 7081 goto out;
7082 7082 }
7083 7083  
7084   - if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED))
  7084 + if (!indexed)
7085 7085 ret = ocfs2_reflink_xattr_block(args, blk_bh, new_blk_bh);
7086 7086 else
7087 7087 ret = ocfs2_reflink_xattr_tree(args, blk_bh, new_blk_bh);