Changeset 44c6091f in mainline for uspace/srv/fs/minixfs/mfs_balloc.c
- Timestamp:
- 2011-04-30T12:24:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fdc05ca
- Parents:
- 8a49fed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_balloc.c
r8a49fed r44c6091f 37 37 static int 38 38 find_free_bit_and_set(bitchunk_t *b, const int bsize, 39 39 const bool native, unsigned start_bit); 40 40 41 41 int … … 55 55 if (idx > sbi->nzones) { 56 56 printf(NAME ": Error! Trying to free beyond the" \ 57 57 "bitmap max size\n"); 58 58 return -1; 59 59 } … … 63 63 if (idx > sbi->ninodes) { 64 64 printf(NAME ": Error! Trying to free beyond the" \ 65 65 "bitmap max size\n"); 66 66 return -1; 67 67 } … … 124 124 for (i = *search / bits_per_block; i < nblocks; ++i) { 125 125 r = block_get(&b, inst->handle, i + start_block, 126 126 BLOCK_FLAGS_NONE); 127 127 128 128 on_error(r, goto out); … … 168 168 static int 169 169 find_free_bit_and_set(bitchunk_t *b, const int bsize, 170 170 const bool native, unsigned start_bit) 171 171 { 172 172 int r = -1; … … 176 176 177 177 for (i = start_bit / sizeof(uint32_t); 178 178 i < bsize / sizeof(uint32_t); ++i) { 179 179 if (!(~b[i])) { 180 180 /*No free bit in this chunk*/ … … 200 200 /** 201 201 * @} 202 */ 203 202 */ 203
Note:
See TracChangeset
for help on using the changeset viewer.