Changeset 038b289 in mainline for uspace/srv/fs/mfs/mfs_balloc.c
- Timestamp:
- 2011-09-06T23:34:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 888207c9, c05642d, c0e53ff
- Parents:
- 7e9fce6 (diff), fb7e5a9a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_balloc.c
r7e9fce6 r038b289 56 56 { 57 57 int r = mfs_alloc_bit(inst, inum, BMAP_INODE); 58 59 *inum += 1;60 58 return r; 61 59 } … … 71 69 mfs_free_inode(struct mfs_instance *inst, uint32_t inum) 72 70 { 73 return mfs_free_bit(inst, inum - 1, BMAP_INODE);71 return mfs_free_bit(inst, inum, BMAP_INODE); 74 72 } 75 73 … … 202 200 start_block = 2 + sbi->ibmap_blocks; 203 201 nblocks = sbi->zbmap_blocks; 204 limit = sbi->nzones ;202 limit = sbi->nzones - sbi->firstdatazone - 1; 205 203 } else { 206 204 /*bid == BMAP_INODE*/
Note:
See TracChangeset
for help on using the changeset viewer.