/* Release a list of pages which are strung together on page.lru. Currently used by read_cache_pages() and related error recovery code.  */
void put_pages_list(struct list_head *pages)
/* Release a list of pages which are strung together on page.lru. Currently used by read_cache_pages() and related error recovery code.  */
void put_pages_list(struct list_head *pages)
{
	while (!list_empty(pages)) {
		struct page *victim;
		victim = list_entry(pages->prev, struct page, lru);
		list_del(&victim->lru);
		page_cache_release(victim);
	}
}