From: Jeff Liu Date: Tue, 12 Oct 2010 03:18:18 +0000 (+0800) Subject: ocfs2: Avoid to evaluate xattr block flags again. X-Git-Tag: firefly_0821_release~7613^2~3705^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2decd65a2630633cee04d0b83fdcee46ad2989a1;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 06fa5e77c40e..67cd43914641 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -7081,7 +7081,7 @@ static int ocfs2_reflink_xattr_in_block(struct ocfs2_xattr_reflink *args, goto out; } - if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) + if (!indexed) ret = ocfs2_reflink_xattr_block(args, blk_bh, new_blk_bh); else ret = ocfs2_reflink_xattr_tree(args, blk_bh, new_blk_bh);