Changeset 829d238 in mainline for uspace/lib/ext4/libext4_filesystem.c


Ignore:
Timestamp:
2011-10-10T18:55:04Z (14 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6d52126b
Parents:
7b9381b
Message:

Basic extent structures + applied bugfix from M. Lombardi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_filesystem.c

    r7b9381b r829d238  
    196196}
    197197
     198int ext4_filesystem_put_block_group_ref(ext4_block_group_ref_t *ref)
     199{
     200        int rc;
     201
     202        rc = block_put(ref->block);
     203        free(ref);
     204
     205        return rc;
     206}
     207
    198208int ext4_filesystem_get_inode_ref(ext4_filesystem_t *fs, uint32_t index,
    199209    ext4_inode_ref_t **ref)
     
    235245            bg_ref->block_group);
    236246
     247        rc = ext4_filesystem_put_block_group_ref(bg_ref);
     248        if (rc != EOK) {
     249                free(newref);
     250                return rc;
     251        }
     252
    237253        inode_size = ext4_superblock_get_inode_size(fs->superblock);
    238254        block_size = ext4_superblock_get_block_size(fs->superblock);
Note: See TracChangeset for help on using the changeset viewer.