Skip to contentSkip to conversation

ocfs2: Avoid to evaluate xattr block flags again.

PATCH New Jeff Liu 2 participants 2 messages Oct 12, 2010 OCFS2

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH 1/1 ocfs2: Avoid to evaluate xattr block flags again.

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

---
 fs/ocfs2/xattr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/xattr.c +1 -1
index e97b348..1e51eb4 100644
@@ -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);
Signature · 1 line
1.5.4.3
#1 lore raw

PATCH 1/1 ocfs2: Avoid to evaluate xattr block flags again.

Quoted 3 lines · Jeff Liu

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

This patch is now in the merge-window branch of ocfs2.git.

Joel

Signature · 10 lines
"Where are my angels?
 Where's my golden one?
 And where is my hope
 Now that my heroes are gone?"

Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127