|
@@ -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,
|