kernels/linux-2.4.0/mm/swap.c
/**
 * __lru_cache_del: remove a page from the page lists
 * @page: the page to add
 *
 * This function is for when the caller already holds
 * the pagemap_lru_lock.
 */


This function is for when the caller already holds
the pagemap_lru_lock.
This function is for when the caller already holds the pagemap_lru_lock .
void __lru_cache_del(struct page * page)
{
	if (PageActive(page)) {
		del_page_from_active_list(page);
	} else if (PageInactiveDirty(page)) {
		del_page_from_inactive_dirty_list(page);
	} else if (PageInactiveClean(page)) {
		del_page_from_inactive_clean_list(page);
	} else {
		printk("VM: __lru_cache_del, found unknown page ?!\n");
	}
	DEBUG_ADD_PAGE
}
void __lru_cache_del ( struct page * page ) { if ( PageActive ( page ) ) { del_page_from_active_list ( page ) ; } else if ( PageInactiveDirty ( page ) ) { del_page_from_inactive_dirty_list ( page ) ; } else if ( PageInactiveClean ( page ) ) { del_page_from_inactive_clean_list ( page ) ; } else { printk ( " \n " ) ; } DEBUG_ADD_PAGE }
__lru_cache_del: remove a page from the page lists
 @page: the page to add
__lru_cache_del : remove a page from the page lists @page : the page to add