summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/resize.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 10:36:33 -0700
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:56:28 +0200
commit558feb0818374d657fbc1ea03776ee20f204b3a6 (patch)
tree9c063b50ef953405850422ca740dda3093ef6387 /fs/reiserfs/resize.c
parent1ac4594d88f63ba1557cc1a30ec1f915ca55b7cb (diff)
downloadlinux-558feb0818374d657fbc1ea03776ee20f204b3a6.tar.gz
linux-558feb0818374d657fbc1ea03776ee20f204b3a6.tar.bz2
linux-558feb0818374d657fbc1ea03776ee20f204b3a6.zip
fs: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Alex Elder <aelder@sgi.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/reiserfs/resize.c')
-rw-r--r--fs/reiserfs/resize.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/reiserfs/resize.c b/fs/reiserfs/resize.c
index b6b9b1fe33b0..7483279b482d 100644
--- a/fs/reiserfs/resize.c
+++ b/fs/reiserfs/resize.c
@@ -111,15 +111,13 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
/* allocate additional bitmap blocks, reallocate array of bitmap
* block pointers */
bitmap =
- vmalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
+ vzalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
if (!bitmap) {
/* Journal bitmaps are still supersized, but the memory isn't
* leaked, so I guess it's ok */
printk("reiserfs_resize: unable to allocate memory.\n");
return -ENOMEM;
}
- memset(bitmap, 0,
- sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
for (i = 0; i < bmap_nr; i++)
bitmap[i] = old_bitmap[i];