Changes in uspace/srv/fs/mfs/mfs_ops.c [1eaa3cf:cc8044e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs_ops.c
r1eaa3cf rcc8044e 216 216 sbi->isearch = 0; 217 217 sbi->zsearch = 0; 218 sbi->nfree_zones_valid = false;219 sbi->nfree_zones = 0;220 218 221 219 if (version == MFS_VERSION_V3) { … … 1183 1181 return rc; 1184 1182 1185 struct mfs_sb_info *sbi = inst->sbi; 1186 1187 if (!sbi->nfree_zones_valid) { 1188 /* The cached number of free zones is not valid, 1189 * we need to scan the bitmap to retrieve the 1190 * current value. 1191 */ 1192 1193 rc = mfs_count_free_zones(inst, &block_free); 1194 if (rc != EOK) 1195 return rc; 1196 1197 sbi->nfree_zones = block_free; 1198 sbi->nfree_zones_valid = true; 1199 } 1200 1201 *count = sbi->nfree_zones; 1202 1203 return EOK; 1183 rc = mfs_count_free_zones(inst, &block_free); 1184 *count = block_free; 1185 1186 return rc; 1204 1187 } 1205 1188
Note:
See TracChangeset
for help on using the changeset viewer.