samples/c/0/swap.c
void pagevec_strip(struct pagevec *pvec)
{
	int i;

	for (i = 0; i < pagevec_count(pvec); i++) {
		struct page *page = pvec->pages[i];

		if (PagePrivate(page) && trylock_page(page)) {
			if (PagePrivate(page))
				try_to_release_page(page, 0);
			unlock_page(page);
		}
	}
}
/*
 * Try to drop buffers from the pages in a pagevec
 */
Try to drop buffers from the pages in a pagevec
Try to drop buffers from the pages in a pagevec
void pagevec_strip(struct pagevec *pvec)
{
	int i;
	for (i = 0; i < pagevec_count(pvec); i++) {
		struct page *page = pvec->pages[i];
		if (PagePrivate(page) && trylock_page(page)) {
			if (PagePrivate(page))
				try_to_release_page(page, 0);
			unlock_page(page);
		}
	}
}
void pagevec_strip ( struct pagevec * pvec ) { int i ; for ( i = 0 ; i < pagevec_count ( pvec ) ; i ++ ) { struct page * page = pvec -> pages [ i ] ; if ( PagePrivate ( page ) && trylock_page ( page ) ) { if ( PagePrivate ( page ) ) try_to_release_page ( page , 0 ) ; unlock_page ( page ) ; } } }
Try to drop buffers from the pages in a pagevec
Try to drop buffers from the pages in a pagevec