diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-09-27 04:49:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:10 -0400 |
commit | f8314dc60ccba7e41f425048c4160dc7f63377d5 (patch) | |
tree | 4e361a6e93dc7f64da0244e5a0dfef1fface0ddb /fs/efs | |
parent | 32c2d2bc4bed61323f14f2a7d69ccbd567253d8a (diff) |
[PATCH] fs: Conversions from kmalloc+memset to k(z|c)alloc
Conversions from kmalloc+memset to kzalloc.
Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Jffs2-bit-acked-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/efs')
-rw-r--r-- | fs/efs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c index 8ac2462ae5dd..7089269ee9ae 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c | |||
@@ -248,11 +248,10 @@ static int efs_fill_super(struct super_block *s, void *d, int silent) | |||
248 | struct buffer_head *bh; | 248 | struct buffer_head *bh; |
249 | struct inode *root; | 249 | struct inode *root; |
250 | 250 | ||
251 | sb = kmalloc(sizeof(struct efs_sb_info), GFP_KERNEL); | 251 | sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL); |
252 | if (!sb) | 252 | if (!sb) |
253 | return -ENOMEM; | 253 | return -ENOMEM; |
254 | s->s_fs_info = sb; | 254 | s->s_fs_info = sb; |
255 | memset(sb, 0, sizeof(struct efs_sb_info)); | ||
256 | 255 | ||
257 | s->s_magic = EFS_SUPER_MAGIC; | 256 | s->s_magic = EFS_SUPER_MAGIC; |
258 | if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { | 257 | if (!sb_set_blocksize(s, EFS_BLOCKSIZE)) { |