/* * This must be called only on pages that have * been verified to be in the swap cache. */ void __delete_from_swap_cache(struct page *page) { swp_entry_t entry; entry.val = page->index; #ifdef SWAP_CACHE_INFO swap_cache_del_total++; #endif remove_from_swap_cache(page); swap_free(entry); }
/* * This must be called only on pages that have * been verified to be in the swap cache. */ void delete_from_swap_cache(struct page *page) { long entry = page->offset; #ifdef SWAP_CACHE_INFO swap_cache_del_total++; #endif #ifdef DEBUG_SWAP printk("DebugVM: delete_from_swap_cache(%08lx count %d, " "entry %08lx)\n", page_address(page), atomic_read(&page->count), entry); #endif remove_from_swap_cache (page); swap_free (entry); }