summaryrefslogtreecommitdiff
path: root/fs/orangefs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-10-08 20:27:40 -0400
committerMike Marshall <hubcap@omnibond.com>2015-11-13 11:52:52 -0500
commit75992b0fa95a667d8f436962ea6a694fe992c001 (patch)
tree3d73c148c1be74ecc5dd82eaca96db5a56f32af2 /fs/orangefs/super.c
parent5c0dbbc64b25fde6a4e29c545ac2296fc5194b3f (diff)
downloadlwn-75992b0fa95a667d8f436962ea6a694fe992c001.tar.gz
lwn-75992b0fa95a667d8f436962ea6a694fe992c001.zip
pvfs2_fill_sb(): use kzalloc()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/super.c')
-rw-r--r--fs/orangefs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
index f29e7cccdfd1..45db0772a767 100644
--- a/fs/orangefs/super.c
+++ b/fs/orangefs/super.c
@@ -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;