ocfs2: use the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
PATCH 10/119 ocfs2: use the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
From: alex chen <[email protected]>
Subject: 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.
Signed-off-by Alex Chen <[email protected]>
Reviewed-by Jun Piao <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Joel Becker <[email protected]>
Cc Junxiao Bi <[email protected]>
Cc Joseph Qi <[email protected]>
Cc Changwei Ge <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/ocfs2/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/xattr.c renamed from fs/ocfs2/xattr.c~ocfs2-using-the-ocfs2_xattr_root_size-macro-in-ocfs2_reflink_xattr_header +1 -1
@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(ha* and then insert the extents one by one. */ 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_bh = value_bh; ocfs2_init_xattr_value_extent_tree(&data_et,
_