/* This must be called only on pages that have been verified to be in the swap cache and locked. It will never put the page into the free list, the caller has a reference on the page.  */
void delete_from_swap_cache(struct page *page)
/* This must be called only on pages that have been verified to be in the swap cache and locked. It will never put the page into the free list, the caller has a reference on the page.  */
void delete_from_swap_cache(struct page *page)
{
	swp_entry_t entry;
	entry.val = page_private(page);
	spin_lock_irq(&swapper_space.tree_lock);
	__delete_from_swap_cache(page);
	spin_unlock_irq(&swapper_space.tree_lock);
	swapcache_free(entry, page);
	page_cache_release(page);
}