Changeset 76b7622 in mainline
- Timestamp:
- 2011-07-25T20:26:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936ece7
- Parents:
- b489f66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_balloc.c
rb489f66 r76b7622 56 56 mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum) 57 57 { 58 return mfs_alloc_bit(inst, inum, BMAP_INODE); 58 int r = mfs_alloc_bit(inst, inum, BMAP_INODE); 59 60 *inum += 1; 61 return r; 59 62 } 60 63 … … 160 163 chunk &= ~(1 << (idx % chunk_bits)); 161 164 ptr[idx / chunk_bits] = conv32(sbi->native, chunk); 165 162 166 b->dirty = true; 163 167 r = block_put(b); … … 231 235 /*Free bit found in this block, compute the real index*/ 232 236 *idx = freebit + bits_per_block * i; 233 *idx += (bid == BMAP_INODE) ? 1 : 0;234 237 mfsdebug("alloc index %d %d\n", (int) *idx, i); 235 238 if (*idx > limit) {
Note:
See TracChangeset
for help on using the changeset viewer.