提交 a0e959d3 编写于 作者: D Dave Chinner 提交者: Darrick J. Wong

xfs: remove unnecessary indenting from xfs_attr3_leaf_getvalue

Signed-off-by: NDave Chinner <dchinner@redhat.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 728bcaa3
...@@ -2391,24 +2391,25 @@ xfs_attr3_leaf_getvalue( ...@@ -2391,24 +2391,25 @@ xfs_attr3_leaf_getvalue(
} }
args->valuelen = valuelen; args->valuelen = valuelen;
memcpy(args->value, &name_loc->nameval[args->namelen], valuelen); memcpy(args->value, &name_loc->nameval[args->namelen], valuelen);
} else { return 0;
name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); }
ASSERT(name_rmt->namelen == args->namelen);
ASSERT(memcmp(args->name, name_rmt->name, args->namelen) == 0); name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index);
args->rmtvaluelen = be32_to_cpu(name_rmt->valuelen); ASSERT(name_rmt->namelen == args->namelen);
args->rmtblkno = be32_to_cpu(name_rmt->valueblk); ASSERT(memcmp(args->name, name_rmt->name, args->namelen) == 0);
args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount, args->rmtvaluelen = be32_to_cpu(name_rmt->valuelen);
args->rmtvaluelen); args->rmtblkno = be32_to_cpu(name_rmt->valueblk);
if (args->flags & ATTR_KERNOVAL) { args->rmtblkcnt = xfs_attr3_rmt_blocks(args->dp->i_mount,
args->valuelen = args->rmtvaluelen; args->rmtvaluelen);
return 0; if (args->flags & ATTR_KERNOVAL) {
} args->valuelen = args->rmtvaluelen;
if (args->valuelen < args->rmtvaluelen) { return 0;
args->valuelen = args->rmtvaluelen; }
return -ERANGE; if (args->valuelen < args->rmtvaluelen) {
}
args->valuelen = args->rmtvaluelen; args->valuelen = args->rmtvaluelen;
return -ERANGE;
} }
args->valuelen = args->rmtvaluelen;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部