Changeset 8a49fed in mainline for uspace/srv/fs/minixfs/mfs_balloc.c
- Timestamp:
- 2011-04-30T11:45:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 44c6091f
- Parents:
- 2874547
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_balloc.c
r2874547 r8a49fed 72 72 73 73 r = block_get(&b, inst->handle, block, BLOCK_FLAGS_NONE); 74 if (r != EOK) 75 goto out_err; 74 on_error(r, goto out_err); 76 75 77 76 /*Compute the bit index in the block*/ … … 85 84 ptr[idx / chunk_bits] = conv32(sbi->native, chunk); 86 85 b->dirty = true; 87 r = EOK; 88 block_put(b); 86 r = block_put(b); 89 87 90 88 out_err: … … 128 126 BLOCK_FLAGS_NONE); 129 127 130 if (r != EOK) 131 goto out; 128 on_error(r, goto out); 132 129 133 130 freebit = find_free_bit_and_set(b->data, sbi->block_size, … … 145 142 if (*idx > limit) { 146 143 /*Index is beyond the limit, it is invalid*/ 147 block_put(b); 144 r = block_put(b); 145 on_error(r, goto out); 148 146 break; 149 147 } … … 151 149 *search = *idx; 152 150 b->dirty = true; 153 block_put(b);154 goto found;151 r = block_put(b); 152 goto out; 155 153 } 156 154 … … 163 161 /*Free bit not found, return error*/ 164 162 return ENOSPC; 165 166 found:167 r = EOK;168 163 169 164 out:
Note:
See TracChangeset
for help on using the changeset viewer.