projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc2af28
)
ocfs2: use the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_header()
author
alex chen
<
[email protected]
>
Thu, 1 Feb 2018 00:14:36 +0000
(16:14 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 1 Feb 2018 01:18:35 +0000
(17:18 -0800)
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]
>
fs/ocfs2/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/xattr.c
b/fs/ocfs2/xattr.c
index c5898c59d4118d8dbd276f32bdf65e23eff52919..2423e905ec1a60e05888e3d37a5ca3fee128c6ad 100644
(file)
--- a/
fs/ocfs2/xattr.c
+++ b/
fs/ocfs2/xattr.c
@@
-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,