kernels/linux-2.4.0/mm/swap.c
/*
 * Move an inactive page to the active list.
 */
Move an inactive page to the active list.
Move an inactive page to the active list .
void activate_page_nolock(struct page * page)
{
	if (PageInactiveDirty(page)) {
		del_page_from_inactive_dirty_list(page);
		add_page_to_active_list(page);
	} else if (PageInactiveClean(page)) {
		del_page_from_inactive_clean_list(page);
		add_page_to_active_list(page);
	} else {
	}
	if (page->age < PAGE_AGE_START)
		page->age = PAGE_AGE_START;
}
void activate_page_nolock ( struct page * page ) { if ( PageInactiveDirty ( page ) ) { del_page_from_inactive_dirty_list ( page ) ; add_page_to_active_list ( page ) ; } else if ( PageInactiveClean ( page ) ) { del_page_from_inactive_clean_list ( page ) ; add_page_to_active_list ( page ) ; } else { } if ( page -> age < PAGE_AGE_START ) page -> age = PAGE_AGE_START ; }
Move an inactive page to the active list.
Move an inactive page to the active list .
/*
		 * The page was not on any list, so we take care
		 * not to do anything.
		 */ /* Make sure the page gets a fair chance at staying active. */