aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-05-04 23:19:46 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:33:27 +0200
commit978bfe27b9548fa9876f65ae5f4f36a451bf8fa2 (patch)
tree12096b24a759ec6bf3a169bd10a6835b91c0f250
parent3128eae2fda12468129fcd55f26b968b36e83440 (diff)
f2fs: remove unneeded memset when updating xattr
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>
-rw-r--r--fs/f2fs/xattr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index dc3d085a1..28670564f 100644
--- a/fs/f2fs/xattr.c
+++ b/fs/f2fs/xattr.c
@@ -567,7 +567,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);