Skip to content

Commit

Permalink
pvfs2_fill_sb(): use kzalloc()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
  • Loading branch information
Al Viro authored and hubcapsc committed Nov 13, 2015
1 parent 5c0dbbc commit 75992b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/orangefs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75992b0

Please sign in to comment.