diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-10-17 02:26:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:50 -0400 |
commit | b63d50c438bd3a8910263e15c37ca8634b110c92 (patch) | |
tree | d7198d3bd8c2ac7a6c93a8ab11b3167636b0b3cd /fs | |
parent | f035ac821bf8c36a558471e78c514a96202a1bda (diff) |
fs/autofs4/inode.c: kmalloc + memset conversion to kzalloc
fs/autofs4/inode.c | 10467 -> 10435 (-32 bytes)
fs/autofs4/inode.o | 98576 -> 98552 (-24 bytes)
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 692364e8ffc3..cd81f0836671 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -312,13 +312,11 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
312 | struct autofs_sb_info *sbi; | 312 | struct autofs_sb_info *sbi; |
313 | struct autofs_info *ino; | 313 | struct autofs_info *ino; |
314 | 314 | ||
315 | sbi = kmalloc(sizeof(*sbi), GFP_KERNEL); | 315 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
316 | if (!sbi) | 316 | if (!sbi) |
317 | goto fail_unlock; | 317 | goto fail_unlock; |
318 | DPRINTK("starting up, sbi = %p",sbi); | 318 | DPRINTK("starting up, sbi = %p",sbi); |
319 | 319 | ||
320 | memset(sbi, 0, sizeof(*sbi)); | ||
321 | |||
322 | s->s_fs_info = sbi; | 320 | s->s_fs_info = sbi; |
323 | sbi->magic = AUTOFS_SBI_MAGIC; | 321 | sbi->magic = AUTOFS_SBI_MAGIC; |
324 | sbi->pipefd = -1; | 322 | sbi->pipefd = -1; |