/* Clears count bits starting at a given block.  */
int omfs_clear_range(struct super_block *sb, u64 block, int count)
/* Clears count bits starting at a given block.  */
int omfs_clear_range(struct super_block *sb, u64 block, int count)
{
	struct omfs_sb_info *sbi = OMFS_SB(sb);
	int bits_per_entry = 8 * sb->s_blocksize;
	u64 tmp;
	unsigned int map, bit;
	int ret;
	tmp = block;
	bit = do_div(tmp, bits_per_entry);
	map = tmp;
	if (map >= sbi->s_imap_size)
		return 0;
	mutex_lock(&sbi->s_bitmap_lock);
	ret = set_run(sb, map, bits_per_entry, bit, count, 0);
	mutex_unlock(&sbi->s_bitmap_lock);
	return ret;
}