Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs.h

    rfd7dbbb r062d900  
    4444#include <errno.h>
    4545#include <assert.h>
    46 #include <stdbool.h>
    4746#include "../../vfs/vfs.h"
    4847
     
    5857#define mfsdebug(...)
    5958#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)
    7059
    7160typedef uint32_t bitchunk_t;
     
    10695        unsigned isearch;
    10796        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;
    11897};
    11998
     
    222201mfs_free_zone(struct mfs_instance *inst, uint32_t zone);
    223202
    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 
    231203/* mfs_utils.c */
    232204extern uint16_t
Note: See TracChangeset for help on using the changeset viewer.