Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_balloc.c

    rb7fd2a0 rcde999a  
    3838    const bool native, unsigned start_bit);
    3939
    40 static errno_t
     40static int
    4141mfs_free_bit(struct mfs_instance *inst, uint32_t idx, bmap_id_t bid);
    4242
    43 static errno_t
     43static int
    4444mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid);
    4545
    46 static errno_t
     46static int
    4747mfs_count_free_bits(struct mfs_instance *inst, bmap_id_t bid, uint32_t *free);
    4848
     
    5656 * @return              EOK on success or an error code.
    5757 */
    58 errno_t
     58int
    5959mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum)
    6060{
    61         errno_t r = mfs_alloc_bit(inst, inum, BMAP_INODE);
     61        int r = mfs_alloc_bit(inst, inum, BMAP_INODE);
    6262        return r;
    6363}
     
    7070 * @return              EOK on success or an error code.
    7171 */
    72 errno_t
     72int
    7373mfs_free_inode(struct mfs_instance *inst, uint32_t inum)
    7474{
     
    8484 * @return              EOK on success or an error code.
    8585 */
    86 errno_t
     86int
    8787mfs_alloc_zone(struct mfs_instance *inst, uint32_t *zone)
    8888{
    89         errno_t r = mfs_alloc_bit(inst, zone, BMAP_ZONE);
     89        int r = mfs_alloc_bit(inst, zone, BMAP_ZONE);
    9090        if (r != EOK)
    9191                return r;
     
    107107 * @return              EOK on success or an error code.
    108108 */
    109 errno_t
     109int
    110110mfs_free_zone(struct mfs_instance *inst, uint32_t zone)
    111111{
    112         errno_t r;
     112        int r;
    113113
    114114        zone -= inst->sbi->firstdatazone - 1;
     
    134134 * @return              EOK on success or an error code.
    135135 */
    136 errno_t
     136int
    137137mfs_count_free_zones(struct mfs_instance *inst, uint32_t *zones)
    138138{
     
    149149 */
    150150
    151 errno_t
     151int
    152152mfs_count_free_inodes(struct mfs_instance *inst, uint32_t *inodes)
    153153{
     
    164164 * @return              EOK on success or an error code.
    165165 */
    166 static errno_t
     166static int
    167167mfs_count_free_bits(struct mfs_instance *inst, bmap_id_t bid, uint32_t *free)
    168168{
    169         errno_t r;
     169        int r;
    170170        unsigned start_block;
    171171        unsigned long nblocks;
     
    228228 * @return              EOK on success or an error code.
    229229 */
    230 static errno_t
     230static int
    231231mfs_free_bit(struct mfs_instance *inst, uint32_t idx, bmap_id_t bid)
    232232{
    233233        struct mfs_sb_info *sbi;
    234         errno_t r;
     234        int r;
    235235        unsigned start_block;
    236236        unsigned *search;
     
    295295 * @return              EOK on success or an error code.
    296296 */
    297 static errno_t
     297static int
    298298mfs_alloc_bit(struct mfs_instance *inst, uint32_t *idx, bmap_id_t bid)
    299299{
     
    303303        unsigned *search, i, start_block;
    304304        unsigned bits_per_block;
    305         errno_t r;
     305        int r;
    306306        int freebit;
    307307
Note: See TracChangeset for help on using the changeset viewer.