Jeff Liu
2010-Oct-12 03:18 UTC
[Ocfs2-devel] [PATCH 1/1] 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 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
Joel Becker
2010-Oct-12 06:19 UTC
[Ocfs2-devel] [PATCH 1/1] ocfs2: Avoid to evaluate xattr block flags again.
On Tue, Oct 12, 2010 at 11:18:18AM +0800, Jeff Liu wrote:> It was evaludated to indexed before, check it is ok i think. > > Signed-off-by: Jeff Liu <jeff.liu at oracle.com>This patch is now in the merge-window branch of ocfs2.git. Joel -- "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