Skip to content

Commit 32ed0bd

Browse files
alex chentorvalds
authored andcommitted
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/[email protected] 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]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent fc2af28 commit 32ed0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ocfs2/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6415,7 +6415,7 @@ static int ocfs2_reflink_xattr_header(handle_t *handle,
64156415
* and then insert the extents one by one.
64166416
*/
64176417
if (xv->xr_list.l_tree_depth) {
6418-
memcpy(new_xv, &def_xv, sizeof(def_xv));
6418+
memcpy(new_xv, &def_xv, OCFS2_XATTR_ROOT_SIZE);
64196419
vb->vb_xv = new_xv;
64206420
vb->vb_bh = value_bh;
64216421
ocfs2_init_xattr_value_extent_tree(&data_et,

0 commit comments

Comments
 (0)