Changes in uspace/lib/ext4/src/filesystem.c [6ba36a0:7bdedb5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/filesystem.c
r6ba36a0 r7bdedb5 421 421 enum cache_mode cmode, aoff64_t *size, ext4_filesystem_t **rfs) 422 422 { 423 int fs_inited = 0; 423 424 ext4_filesystem_t *fs = NULL; 424 425 fs_node_t *root_node = NULL; … … 437 438 if (rc != EOK) 438 439 goto error; 440 441 fs_inited = 1; 439 442 440 443 /* Read root node */ … … 463 466 ext4_node_put(root_node); 464 467 465 if (fs != NULL) {468 if (fs_inited) 466 469 ext4_filesystem_fini(fs); 467 free(fs); 468 } 469 470 free(fs); 470 471 return rc; 471 472 } … … 714 715 /* One for block bitmap one for inode bitmap */ 715 716 free_blocks = free_blocks - reserved - 2 - inode_table_blocks; 716 if (bg_index == 0)717 ++free_blocks; /* XXX Why? */718 717 719 718 ext4_block_group_set_free_blocks_count(bg_ref->block_group,
Note:
See TracChangeset
for help on using the changeset viewer.