Ignore:
File:
1 edited

Legend:

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

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