/* %-ENOENT - A record associated with @key does not exist.  */
int nilfs_bmap_delete(struct nilfs_bmap *bmap, unsigned long key)
/* %-ENOENT - A record associated with @key does not exist.  */
int nilfs_bmap_delete(struct nilfs_bmap *bmap, unsigned long key)
{
	int ret;
	down_write(&bmap->b_sem);
	ret = nilfs_bmap_do_delete(bmap, key);
	up_write(&bmap->b_sem);
	return ret;
}