kernels/linux-2.4.0/mm/swap.c
/**
 * age_page_{up,down} -	page aging helper functions
 * @page - the page we want to age
 * @nolock - are we already holding the pagelist_lru_lock?
 *
 * If the page is on one of the lists (active, inactive_dirty or
 * inactive_clean), we will grab the pagelist_lru_lock as needed.
 * If you're already holding the lock, call this function with the
 * nolock argument non-zero.
 */


If the page is on one of the lists (active, inactive_dirty or
inactive_clean), we will grab the pagelist_lru_lock as needed.
If you're already holding the lock, call this function with the
nolock argument non-zero.
If the page is on one of the lists ( active inactive_dirty or inactive_clean ) we will grab the pagelist_lru_lock as needed . If you ' re already holding the lock call this function with the nolock argument non - zero .
void age_page_up_nolock(struct page * page)
{
	if (!page->age)
		activate_page_nolock(page);
	page->age += PAGE_AGE_ADV;
	if (page->age > PAGE_AGE_MAX)
		page->age = PAGE_AGE_MAX;
}
void age_page_up_nolock ( struct page * page ) { if ( ! page -> age ) activate_page_nolock ( page ) ; page -> age += PAGE_AGE_ADV ; if ( page -> age > PAGE_AGE_MAX ) page -> age = PAGE_AGE_MAX ; }
age_page_{up,down} - page aging helper functions
 @page - the page we want to age
 @nolock - are we already holding the pagelist_lru_lock?
age_page_ { up down } - page aging helper functions @page - the page we want to age @nolock - are we already holding the pagelist_lru_lock?
/*
	 * We're dealing with an inactive page, move the page
	 * to the active list.
	 */ /* The actual page aging bit */