Skip to content

Commit

Permalink
f2fs: remove unneeded memset from init_once
Browse files Browse the repository at this point in the history
Since, __GFP_ZERO is used while f2fs inode allocation, so we do not
need memset for f2fs_inode_info, as this is already zeroed out.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
  • Loading branch information
Namjae Jeon authored and Jaegeuk Kim committed Dec 11, 2012
1 parent 72ce609 commit 154a086
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ static void init_once(void *foo)
{
struct f2fs_inode_info *fi = (struct f2fs_inode_info *) foo;

memset(fi, 0, sizeof(*fi));
inode_init_once(&fi->vfs_inode);
}

Expand Down

0 comments on commit 154a086

Please sign in to comment.