Changeset 9530d94 in mainline


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

Location:
uspace/srv/fs/minixfs
Files:
3 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*/
  • uspace/srv/fs/minixfs/mfs_dentry.c

    ree257b2 r9530d94  
    7777        }
    7878
    79         block_put(b);
     79        r = block_put(b);
    8080
    8181        d_info->index = index;
     
    122122
    123123        b->dirty = true;
    124         block_put(b);
     124        r = block_put(b);
    125125
    126126out:
  • uspace/srv/fs/minixfs/mfs_inode.c

    ree257b2 r9530d94  
    243243
    244244        b->dirty = true;
    245         block_put(b);
     245        r = block_put(b);
    246246
    247247        ino_i->dirty = false;
     
    288288
    289289        b->dirty = true;
    290         block_put(b);
     290        r = block_put(b);
    291291        ino_i->dirty = false;
    292292
Note: See TracChangeset for help on using the changeset viewer.