“d0a0515fc30b55d4b09395d44762c5f41d6d02d5”上不存在“arch/mips/cobalt/lcd.c”
提交 e3bc808c 编写于 作者: C Chao Yu 提交者: Jaegeuk Kim

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: NChao Yu <yuchao0@huawei.com>
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 ae8d1db3
...@@ -528,7 +528,6 @@ static int __f2fs_setxattr(struct inode *inode, int index, ...@@ -528,7 +528,6 @@ static int __f2fs_setxattr(struct inode *inode, int index,
* Before we come here, old entry is removed. * Before we come here, old entry is removed.
* We just write new entry. * We just write new entry.
*/ */
memset(last, 0, newsize);
last->e_name_index = index; last->e_name_index = index;
last->e_name_len = len; last->e_name_len = len;
memcpy(last->e_name, name, len); memcpy(last->e_name, name, len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册