aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/resize.c
diff options
context:
space:
mode:
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)
111 /* allocate additional bitmap blocks, reallocate array of bitmap 111 /* allocate additional bitmap blocks, reallocate array of bitmap
112 * block pointers */ 112 * block pointers */
113 bitmap = 113 bitmap =
114 vmalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new); 114 vzalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
115 if (!bitmap) { 115 if (!bitmap) {
116 /* Journal bitmaps are still supersized, but the memory isn't 116 /* Journal bitmaps are still supersized, but the memory isn't
117 * leaked, so I guess it's ok */ 117 * leaked, so I guess it's ok */
118 printk("reiserfs_resize: unable to allocate memory.\n"); 118 printk("reiserfs_resize: unable to allocate memory.\n");
119 return -ENOMEM; 119 return -ENOMEM;
120 } 120 }
121 memset(bitmap, 0,
122 sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
123 for (i = 0; i < bmap_nr; i++) 121 for (i = 0; i < bmap_nr; i++)
124 bitmap[i] = old_bitmap[i]; 122 bitmap[i] = old_bitmap[i];
125 123