/* Returns 1 if the page is successfully invalidated, otherwise 0.  */
int invalidate_inode_page(struct page *page)
/* Returns 1 if the page is successfully invalidated, otherwise 0.  */
int invalidate_inode_page(struct page *page)
{
	struct address_space *mapping = page_mapping(page);
	if (!mapping)
		return 0;
	if (PageDirty(page) || PageWriteback(page))
		return 0;
	if (page_mapped(page))
		return 0;
	return invalidate_complete_page(mapping, page);
}