diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-06 20:40:32 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:45 -0800 |
commit | b593e48d2bf09c40c0f5165f2f2a10cc3983ea51 (patch) | |
tree | 5eba2dd937d9ce14790776542a2835c8e19e2c2f /fs/affs/bitmap.c | |
parent | 4d2d3cec1da18123b301270381eb748e5ba4f638 (diff) | |
download | op-kernel-dev-b593e48d2bf09c40c0f5165f2f2a10cc3983ea51.zip op-kernel-dev-b593e48d2bf09c40c0f5165f2f2a10cc3983ea51.tar.gz |
[PATCH] affs: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/affs/bitmap.c')
-rw-r--r-- | fs/affs/bitmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/affs/bitmap.c b/fs/affs/bitmap.c index b0b9536..b330009 100644 --- a/fs/affs/bitmap.c +++ b/fs/affs/bitmap.c @@ -289,12 +289,11 @@ int affs_init_bitmap(struct super_block *sb, int *flags) sbi->s_bmap_count = (sbi->s_partition_size - sbi->s_reserved + sbi->s_bmap_bits - 1) / sbi->s_bmap_bits; size = sbi->s_bmap_count * sizeof(*bm); - bm = sbi->s_bitmap = kmalloc(size, GFP_KERNEL); + bm = sbi->s_bitmap = kzalloc(size, GFP_KERNEL); if (!sbi->s_bitmap) { printk(KERN_ERR "AFFS: Bitmap allocation failed\n"); return -ENOMEM; } - memset(sbi->s_bitmap, 0, size); bmap_blk = (__be32 *)sbi->s_root_bh->b_data; blk = sb->s_blocksize / 4 - 49; |