Changes in uspace/srv/fs/mfs/mfs_balloc.c [b2c96093:1eaa3cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_balloc.c
rb2c96093 r1eaa3cf 88 88 { 89 89 int r = mfs_alloc_bit(inst, zone, BMAP_ZONE); 90 if (r != EOK) 91 return r; 92 93 /* Update the cached number of free zones */ 94 struct mfs_sb_info *sbi = inst->sbi; 95 if (sbi->nfree_zones_valid) 96 sbi->nfree_zones--; 90 97 91 98 *zone += inst->sbi->firstdatazone - 1; … … 103 110 mfs_free_zone(struct mfs_instance *inst, uint32_t zone) 104 111 { 112 int r; 113 105 114 zone -= inst->sbi->firstdatazone - 1; 106 115 107 return mfs_free_bit(inst, zone, BMAP_ZONE); 116 r = mfs_free_bit(inst, zone, BMAP_ZONE); 117 if (r != EOK) 118 return r; 119 120 /* Update the cached number of free zones */ 121 struct mfs_sb_info *sbi = inst->sbi; 122 if (sbi->nfree_zones_valid) 123 sbi->nfree_zones++; 124 125 return r; 108 126 } 109 127
Note:
See TracChangeset
for help on using the changeset viewer.