Changeset e5a1ace3 in mainline for uspace/lib/ext4/libext4_ialloc.c


Ignore:
Timestamp:
2013-11-28T20:40:38Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1f63d9d
Parents:
532f53d
Message:

libext4: do not ignore error codes

File:
1 edited

Legend:

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

    r532f53d re5a1ace3  
    215215                        /* Block group has not any free i-node */
    216216                        if (rc == ENOSPC) {
    217                                 block_put(bitmap_block);
    218                                 ext4_filesystem_put_block_group_ref(bg_ref);
     217                                rc = block_put(bitmap_block);
     218                                if (rc != EOK) {
     219                                        ext4_filesystem_put_block_group_ref(bg_ref);
     220                                        return rc;
     221                                }
     222
     223                                rc = ext4_filesystem_put_block_group_ref(bg_ref);
     224                                if (rc != EOK)
     225                                        return rc;
     226
    219227                                continue;
    220228                        }
     
    272280               
    273281                /* Block group not modified, put it and jump to the next block group */
    274                 ext4_filesystem_put_block_group_ref(bg_ref);
     282                rc = ext4_filesystem_put_block_group_ref(bg_ref);
     283                if (rc != EOK)
     284                        return rc;
     285
    275286                ++bgid;
    276287        }
Note: See TracChangeset for help on using the changeset viewer.