/* %-EEXIST - A record associated with @key already exist.  */
int nilfs_bmap_insert(struct nilfs_bmap *bmap, unsigned long key, unsigned long rec)
/* %-EEXIST - A record associated with @key already exist.  */
int nilfs_bmap_insert(struct nilfs_bmap *bmap, unsigned long key, unsigned long rec)
{
	int ret;
	down_write(&bmap->b_sem);
	ret = nilfs_bmap_do_insert(bmap, key, rec);
	up_write(&bmap->b_sem);
	return ret;
}