pvfs2_fill_sb(): use kzalloc()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Al Viro 2015-10-08 20:27:40 -04:00 committed by Mike Marshall
parent 5c0dbbc64b
commit 75992b0fa9
1 changed files with 1 additions and 2 deletions

View File

@ -358,10 +358,9 @@ static int pvfs2_fill_sb(struct super_block *sb,
/* alloc and init our private pvfs2 sb info */
sb->s_fs_info =
kmalloc(sizeof(struct pvfs2_sb_info_s), PVFS2_GFP_FLAGS);
kzalloc(sizeof(struct pvfs2_sb_info_s), PVFS2_GFP_FLAGS);
if (!PVFS2_SB(sb))
return -ENOMEM;
memset(sb->s_fs_info, 0, sizeof(struct pvfs2_sb_info_s));
PVFS2_SB(sb)->sb = sb;
PVFS2_SB(sb)->root_khandle = fs_mount->root_khandle;