diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-23 10:47:13 -0500 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-02-23 10:47:13 -0500 |
commit | 5b3030e39049212c975665cdb3eeabcfaf7c94ca (patch) | |
tree | 93742231c2e01087ae36d7c05d8bd7bdb7ca8878 /fs/jfs/super.c | |
parent | d9e902668e815f9f33ba5056089684b0704eeac6 (diff) |
JFS: kzalloc conversion
this converts fs/jfs to kzalloc() usage.
compile tested with make allyesconfig
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs/super.c')
-rw-r--r-- | fs/jfs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index bd6720d807a6..ab6333347004 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -395,10 +395,9 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent) | |||
395 | if (!new_valid_dev(sb->s_bdev->bd_dev)) | 395 | if (!new_valid_dev(sb->s_bdev->bd_dev)) |
396 | return -EOVERFLOW; | 396 | return -EOVERFLOW; |
397 | 397 | ||
398 | sbi = kmalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); | 398 | sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); |
399 | if (!sbi) | 399 | if (!sbi) |
400 | return -ENOSPC; | 400 | return -ENOSPC; |
401 | memset(sbi, 0, sizeof (struct jfs_sb_info)); | ||
402 | sb->s_fs_info = sbi; | 401 | sb->s_fs_info = sbi; |
403 | sbi->sb = sb; | 402 | sbi->sb = sb; |
404 | 403 | ||