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