/* RETURN VALUES: 0 - success -EIO - i/o error  */
int dbUnmount(struct inode *ipbmap, int mounterror)
/* RETURN VALUES: 0 - success -EIO - i/o error  */
int dbUnmount(struct inode *ipbmap, int mounterror)
{
	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
	if (!(mounterror || isReadOnly(ipbmap)))
		dbSync(ipbmap);
	truncate_inode_pages(ipbmap->i_mapping, 0);
	kfree(bmp);
	return (0);
}