[Ocfs2-devel] [PATCH 1/1] ocfs2: Avoid to evaluate xattr block flags again.

Jeff Liu jeff.liu at oracle.com
Mon Oct 11 20:18:18 PDT 2010


It was evaludated to indexed before, check it is ok i think.

Signed-off-by: Jeff Liu <jeff.liu at oracle.com>
---
 fs/ocfs2/xattr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index e97b348..1e51eb4 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -7011,7 +7011,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);
-- 
1.5.4.3




More information about the Ocfs2-devel mailing list