if (free_map == NULL)
goto done;
bitmap_read (free_map, free_map_file);
- inode_sector = bitmap_scan_and_flip (free_map, 0, disk_size (filesys_disk),
- false);
+ inode_sector = bitmap_scan_and_flip (free_map, 0, 1, false);
if (inode_sector == BITMAP_ERROR)
goto done;
idx->data.length = length;
while (idx->data.sector_cnt < sector_cnt)
{
- size_t sector = bitmap_scan_and_flip (b, 0, bitmap_size (b), false);
+ size_t sector = bitmap_scan_and_flip (b, 0, 1, false);
if (sector == BITMAP_ERROR)
goto error;