/* release a list of pages, invalidating them first if need be  */
static void read_cache_pages_invalidate_pages(struct address_space *mapping, struct list_head *pages)
/* release a list of pages, invalidating them first if need be  */
static void read_cache_pages_invalidate_pages(struct address_space *mapping, struct list_head *pages)
{
	struct page *victim;
	while (!list_empty(pages)) {
		victim = list_to_page(pages);
		list_del(&victim->lru);
		read_cache_pages_invalidate_page(mapping, victim);
	}
}