Changeset 9530d94 in mainline for uspace/srv/fs/minixfs/mfs_balloc.c


Ignore:
Timestamp:
2011-07-27T21:37:38Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8d0d6d8
Parents:
ee257b2
Message:

Check the block_put() error code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_balloc.c

    ree257b2 r9530d94  
    165165        b->dirty = true;
    166166        r = block_put(b);
    167         mfsdebug("free index %u\n", idx);
    168167
    169168        if (*search > idx)
     
    228227                if (freebit == -1) {
    229228                        /*No free bit in this block*/
    230                         block_put(b);
     229                        r = block_put(b);
     230                        on_error(r, goto out);
    231231                        continue;
    232232                }
     
    234234                /*Free bit found in this block, compute the real index*/
    235235                *idx = freebit + bits_per_block * i;
    236                 mfsdebug("alloc index %d %d\n", (int) *idx, i);
    237236                if (*idx > limit) {
    238237                        /*Index is beyond the limit, it is invalid*/
Note: See TracChangeset for help on using the changeset viewer.