Changes in uspace/srv/fs/mfs/mfs_balloc.c [1eaa3cf:b2c96093] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_balloc.c
r1eaa3cf rb2c96093 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--;97 90 98 91 *zone += inst->sbi->firstdatazone - 1; … … 110 103 mfs_free_zone(struct mfs_instance *inst, uint32_t zone) 111 104 { 112 int r;113 114 105 zone -= inst->sbi->firstdatazone - 1; 115 106 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; 107 return mfs_free_bit(inst, zone, BMAP_ZONE); 126 108 } 127 109
Note:
See TracChangeset
for help on using the changeset viewer.