/* Returns non-zero if the page was successfully invalidated.  */
static int invalidate_complete_page(struct address_space *mapping, struct page *page)
/* Returns non-zero if the page was successfully invalidated.  */
static int invalidate_complete_page(struct address_space *mapping, struct page *page)
{
	int ret;
	if (page->mapping != mapping)
		return 0;
	if (page_has_private(page) && !try_to_release_page(page, 0))
		return 0;
	clear_page_mlock(page);
	ret = remove_mapping(mapping, page);
	return ret;
}