diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-04 18:03:01 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-12-10 06:50:34 -0500 |
commit | 3d375d9e0feee79e63a552a3eb3b46f989afce34 (patch) | |
tree | 2fa6b2d68831adf9ac909ab5ae6b86a465c50282 /fs/jffs2/fs.c | |
parent | db06e2a93ff73270e0053c37c88073094e77913d (diff) |
[JFFS2] replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r-- | fs/jffs2/fs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 7bc1a4201c0c..abb90c0c09cc 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c | |||
@@ -502,12 +502,11 @@ int jffs2_do_fill_super(struct super_block *sb, void *data, int silent) | |||
502 | if (ret) | 502 | if (ret) |
503 | return ret; | 503 | return ret; |
504 | 504 | ||
505 | c->inocache_list = kmalloc(INOCACHE_HASHSIZE * sizeof(struct jffs2_inode_cache *), GFP_KERNEL); | 505 | c->inocache_list = kcalloc(INOCACHE_HASHSIZE, sizeof(struct jffs2_inode_cache *), GFP_KERNEL); |
506 | if (!c->inocache_list) { | 506 | if (!c->inocache_list) { |
507 | ret = -ENOMEM; | 507 | ret = -ENOMEM; |
508 | goto out_wbuf; | 508 | goto out_wbuf; |
509 | } | 509 | } |
510 | memset(c->inocache_list, 0, INOCACHE_HASHSIZE * sizeof(struct jffs2_inode_cache *)); | ||
511 | 510 | ||
512 | jffs2_init_xattr_subsystem(c); | 511 | jffs2_init_xattr_subsystem(c); |
513 | 512 | ||