diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-23 16:47:13 +0100 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-02-23 16:47:13 +0100 |
commit | 5b3030e39049212c975665cdb3eeabcfaf7c94ca (patch) | |
tree | 93742231c2e01087ae36d7c05d8bd7bdb7ca8878 /fs/jfs/super.c | |
parent | JFS: Add missing file from fa3241d24cf1182b0ffb6e4d412c3bc2a2ab7bf6 (diff) | |
download | linux-5b3030e39049212c975665cdb3eeabcfaf7c94ca.tar.xz linux-5b3030e39049212c975665cdb3eeabcfaf7c94ca.zip |
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) if (!new_valid_dev(sb->s_bdev->bd_dev)) return -EOVERFLOW; - sbi = kmalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); + sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL); if (!sbi) return -ENOSPC; - memset(sbi, 0, sizeof (struct jfs_sb_info)); sb->s_fs_info = sbi; sbi->sb = sb; |