ocfs2: using the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
PATCH 1/1 ocfs2: using the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
Using 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]>
--- fs/ocfs2/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/xattr.c +1 -1
@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(handle_t *handle,* 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,
-- 1.9.5.msysgit.1
PATCH 1/1 ocfs2: using the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Using the
OCFS2_XATTR_ROOT_SIZEmacro improves the readability of the code.Signed-off-by Alex Chen <[email protected]>Reviewed-by Jun Piao <[email protected]>
Reviewed-by Gang He <[email protected]>
Quoted 24 lines
--- fs/ocfs2/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ocfs2/xattr.c +1
-2@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(handle_t *handle,* 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, -- 1.9.5.msysgit.1_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel