resize.c (d1208404dd477c142680437137c9996b95bfd508) | resize.c (46901760b46064964b41015d00c140c83aa05bcf) |
---|---|
1/* 2 * linux/fs/ext4/resize.c 3 * 4 * Support for resizing an ext4 filesystem while it is mounted. 5 * 6 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 7 * 8 * This could probably be made into a module, because it is not often in use. --- 184 unchanged lines hidden (view full) --- 193static struct ext4_new_flex_group_data *alloc_flex_gd(unsigned long flexbg_size) 194{ 195 struct ext4_new_flex_group_data *flex_gd; 196 197 flex_gd = kmalloc(sizeof(*flex_gd), GFP_NOFS); 198 if (flex_gd == NULL) 199 goto out3; 200 | 1/* 2 * linux/fs/ext4/resize.c 3 * 4 * Support for resizing an ext4 filesystem while it is mounted. 5 * 6 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 7 * 8 * This could probably be made into a module, because it is not often in use. --- 184 unchanged lines hidden (view full) --- 193static struct ext4_new_flex_group_data *alloc_flex_gd(unsigned long flexbg_size) 194{ 195 struct ext4_new_flex_group_data *flex_gd; 196 197 flex_gd = kmalloc(sizeof(*flex_gd), GFP_NOFS); 198 if (flex_gd == NULL) 199 goto out3; 200 |
201 if (flexbg_size >= UINT_MAX / sizeof(struct ext4_new_flex_group_data)) | 201 if (flexbg_size >= UINT_MAX / sizeof(struct ext4_new_group_data)) |
202 goto out2; 203 flex_gd->count = flexbg_size; 204 205 flex_gd->groups = kmalloc(sizeof(struct ext4_new_group_data) * 206 flexbg_size, GFP_NOFS); 207 if (flex_gd->groups == NULL) 208 goto out2; 209 --- 1809 unchanged lines hidden --- | 202 goto out2; 203 flex_gd->count = flexbg_size; 204 205 flex_gd->groups = kmalloc(sizeof(struct ext4_new_group_data) * 206 flexbg_size, GFP_NOFS); 207 if (flex_gd->groups == NULL) 208 goto out2; 209 --- 1809 unchanged lines hidden --- |