Changeset ab936440 in mainline for uspace/lib/ext4/src/filesystem.c


Ignore:
Timestamp:
2019-02-12T20:42:42Z (7 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/src/filesystem.c

    r7f7817a9 rab936440  
    421421    enum cache_mode cmode, aoff64_t *size, ext4_filesystem_t **rfs)
    422422{
     423        int fs_inited = 0;
    423424        ext4_filesystem_t *fs = NULL;
    424425        fs_node_t *root_node = NULL;
     
    437438        if (rc != EOK)
    438439                goto error;
     440
     441        fs_inited = 1;
    439442
    440443        /* Read root node */
     
    463466                ext4_node_put(root_node);
    464467
    465         if (fs != NULL) {
     468        if (fs_inited)
    466469                ext4_filesystem_fini(fs);
    467                 free(fs);
    468         }
    469 
     470        free(fs);
    470471        return rc;
    471472}
     
    714715                /* One for block bitmap one for inode bitmap */
    715716                free_blocks = free_blocks - reserved - 2 - inode_table_blocks;
    716                 if (bg_index == 0)
    717                         ++free_blocks; /* XXX Why? */
    718717
    719718                ext4_block_group_set_free_blocks_count(bg_ref->block_group,
Note: See TracChangeset for help on using the changeset viewer.