提交 32ed0bd7 编写于 作者: A alex chen 提交者: Linus Torvalds

ocfs2: use the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()

Use the OCFS2_XATTR_ROOT_SIZE macro improves the readability of the
code.

Link: http://lkml.kernel.org/r/5A2E2488.70301@huawei.comSigned-off-by: NAlex Chen <alex.chen@huawei.com>
Reviewed-by: NJun Piao <piaojun@huawei.com>
Cc: Mark Fasheh <mfasheh@versity.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 fc2af28b
...@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(handle_t *handle, ...@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(handle_t *handle,
* and then insert the extents one by one. * and then insert the extents one by one.
*/ */
if (xv->xr_list.l_tree_depth) { if (xv->xr_list.l_tree_depth) {
memcpy(new_xv, &def_xv, sizeof(def_xv)); memcpy(new_xv, &def_xv, OCFS2_XATTR_ROOT_SIZE);
vb->vb_xv = new_xv; vb->vb_xv = new_xv;
vb->vb_bh = value_bh; vb->vb_bh = value_bh;
ocfs2_init_xattr_value_extent_tree(&data_et, ocfs2_init_xattr_value_extent_tree(&data_et,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册