projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae8d1db
)
f2fs: remove unneeded memset when updating xattr
author
Chao Yu
<yuchao0@huawei.com>
Wed, 4 May 2016 15:19:46 +0000
(23:19 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 7 May 2016 17:32:28 +0000
(10:32 -0700)
Each of fields in struct f2fs_xattr_entry will be assigned later,
so previously we don't need to memset the struct.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/xattr.c
b/fs/f2fs/xattr.c
index
1529712
..
55c69d3
100644
(file)
--- a/
fs/f2fs/xattr.c
+++ b/
fs/f2fs/xattr.c
@@
-528,7
+528,6
@@
static int __f2fs_setxattr(struct inode *inode, int index,
* Before we come here, old entry is removed.
* We just write new entry.
*/
- memset(last, 0, newsize);
last->e_name_index = index;
last->e_name_len = len;
memcpy(last->e_name, name, len);