/* Used to get rid of pages on hardware memory corruption.  */
int generic_error_remove_page(struct address_space *mapping, struct page *page)
/* Used to get rid of pages on hardware memory corruption.  */
int generic_error_remove_page(struct address_space *mapping, struct page *page)
{
	if (!mapping)
		return -EINVAL;
	if (!S_ISREG(mapping->host->i_mode))
		return -EIO;
	return truncate_inode_page(mapping, page);
}