lkml.org 
[lkml]   [2007]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 33] fs/reiser4/init_super.c: kmalloc + memset conversion to kzalloc
Date
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>

fs/reiser4/init_super.c | 19283 -> 19246 (-37 bytes)
fs/reiser4/init_super.o | 155348 -> 155152 (-196 bytes)

fs/reiser4/init_super.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

--- linux-2.6.23-rc1-mm1-a/fs/reiser4/init_super.c 2007-07-26 13:07:46.000000000 +0200
+++ linux-2.6.23-rc1-mm1-b/fs/reiser4/init_super.c 2007-07-30 00:00:32.000000000 +0200
@@ -17,14 +17,13 @@ int reiser4_init_fs_info(struct super_bl
{
reiser4_super_info_data *sbinfo;

- sbinfo = kmalloc(sizeof(reiser4_super_info_data),
+ sbinfo = kzalloc(sizeof(reiser4_super_info_data),
reiser4_ctx_gfp_mask_get());
if (!sbinfo)
return RETERR(-ENOMEM);

super->s_fs_info = sbinfo;
super->s_op = NULL;
- memset(sbinfo, 0, sizeof(*sbinfo));

ON_DEBUG(INIT_LIST_HEAD(&sbinfo->all_jnodes));
ON_DEBUG(spin_lock_init(&sbinfo->all_guard));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-07-31 20:07    [W:1.347 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site