Skip to content

Commit e3bc808

Browse files
chaseyuJaegeuk Kim
authored andcommitted
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>
1 parent ae8d1db commit e3bc808

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎fs/f2fs/xattr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ static int __f2fs_setxattr(struct inode *inode, int index,
528528
* Before we come here, old entry is removed.
529529
* We just write new entry.
530530
*/
531-
memset(last, 0, newsize);
532531
last->e_name_index = index;
533532
last->e_name_len = len;
534533
memcpy(last->e_name, name, len);

0 commit comments

Comments
 (0)