mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-02 04:14:14 +00:00
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>
This commit is contained in:
parent
f035ac821b
commit
b63d50c438
1 changed files with 1 additions and 3 deletions
|
@ -312,13 +312,11 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
|
||||||
struct autofs_sb_info *sbi;
|
struct autofs_sb_info *sbi;
|
||||||
struct autofs_info *ino;
|
struct autofs_info *ino;
|
||||||
|
|
||||||
sbi = kmalloc(sizeof(*sbi), GFP_KERNEL);
|
sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
|
||||||
if (!sbi)
|
if (!sbi)
|
||||||
goto fail_unlock;
|
goto fail_unlock;
|
||||||
DPRINTK("starting up, sbi = %p",sbi);
|
DPRINTK("starting up, sbi = %p",sbi);
|
||||||
|
|
||||||
memset(sbi, 0, sizeof(*sbi));
|
|
||||||
|
|
||||||
s->s_fs_info = sbi;
|
s->s_fs_info = sbi;
|
||||||
sbi->magic = AUTOFS_SBI_MAGIC;
|
sbi->magic = AUTOFS_SBI_MAGIC;
|
||||||
sbi->pipefd = -1;
|
sbi->pipefd = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue