Changes in uspace/srv/fs/mfs/mfs.h [062d900:fd7dbbb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/mfs/mfs.h
r062d900 rfd7dbbb 44 44 #include <errno.h> 45 45 #include <assert.h> 46 #include <stdbool.h> 46 47 #include "../../vfs/vfs.h" 47 48 … … 57 58 #define mfsdebug(...) 58 59 #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) 59 70 60 71 typedef uint32_t bitchunk_t; … … 95 106 unsigned isearch; 96 107 unsigned zsearch; 108 109 /* Indicates wether if the cached number of free zones 110 * is to be considered valid or not. 111 */ 112 bool nfree_zones_valid; 113 /* Cached number of free zones, used to avoid to scan 114 * the whole bitmap every time the mfs_free_block_count() 115 * is invoked. 116 */ 117 unsigned nfree_zones; 97 118 }; 98 119 … … 201 222 mfs_free_zone(struct mfs_instance *inst, uint32_t zone); 202 223 224 extern int 225 mfs_count_free_zones(struct mfs_instance *inst, uint32_t *zones); 226 227 extern int 228 mfs_count_free_inodes(struct mfs_instance *inst, uint32_t *inodes); 229 230 203 231 /* mfs_utils.c */ 204 232 extern uint16_t
Note:
See TracChangeset
for help on using the changeset viewer.