Changes in uspace/srv/fs/mfs/mfs.h [fd7dbbb:062d900] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs.h
rfd7dbbb r062d900 44 44 #include <errno.h> 45 45 #include <assert.h> 46 #include <stdbool.h>47 46 #include "../../vfs/vfs.h" 48 47 … … 58 57 #define mfsdebug(...) 59 58 #endif 60 61 #define MFS_BMAP_START_BLOCK(sbi, bid) \62 ((bid) == BMAP_ZONE ? 2 + (sbi)->ibmap_blocks : 2)63 64 #define MFS_BMAP_SIZE_BITS(sbi, bid) \65 ((bid) == BMAP_ZONE ? (sbi)->nzones - (sbi)->firstdatazone - 1 : \66 (sbi)->ninodes - 1)67 68 #define MFS_BMAP_SIZE_BLOCKS(sbi, bid) \69 ((bid) == BMAP_ZONE ? (sbi)->zbmap_blocks : (sbi)->ibmap_blocks)70 59 71 60 typedef uint32_t bitchunk_t; … … 106 95 unsigned isearch; 107 96 unsigned zsearch; 108 109 /* Indicates wether if the cached number of free zones110 * is to be considered valid or not.111 */112 bool nfree_zones_valid;113 /* Cached number of free zones, used to avoid to scan114 * the whole bitmap every time the mfs_free_block_count()115 * is invoked.116 */117 unsigned nfree_zones;118 97 }; 119 98 … … 222 201 mfs_free_zone(struct mfs_instance *inst, uint32_t zone); 223 202 224 extern int225 mfs_count_free_zones(struct mfs_instance *inst, uint32_t *zones);226 227 extern int228 mfs_count_free_inodes(struct mfs_instance *inst, uint32_t *inodes);229 230 231 203 /* mfs_utils.c */ 232 204 extern uint16_t
Note:
See TracChangeset
for help on using the changeset viewer.