FreeBSD/sys/dev/drm2/ttm/ttm_page_alloc.c
/**
 * Free pages the pages that failed to change the caching state. If there is
 * any pages that have changed their caching state already put them to the
 * pool.
 */
Free pages the pages that failed to change the caching state. If there is
any pages that have changed their caching state already put them to the
pool.
Free pages the pages that failed to change the caching state . If there is any pages that have changed their caching state already put them to the pool .
static void ttm_handle_caching_state_failure(struct pglist *pages,
		int ttm_flags, enum ttm_caching_state cstate,
		vm_page_t *failed_pages, unsigned cpages)
{
	unsigned i;
	for (i = 0; i < cpages; ++i) {
		TAILQ_REMOVE(pages, failed_pages[i], plinks.q);
		ttm_vm_page_free(failed_pages[i]);
	}
}
static void ttm_handle_caching_state_failure ( struct pglist * pages , int ttm_flags , enum ttm_caching_state cstate , vm_page_t * failed_pages , unsigned cpages ) { unsigned i ; for ( i = 0 ; i < cpages ; ++ i ) { TAILQ_REMOVE ( pages , failed_pages [ i ] , plinks . q ) ; ttm_vm_page_free ( failed_pages [ i ] ) ; } }
Free pages the pages that failed to change the caching state.
Free pages the pages that failed to change the caching state .
/* Failed pages have to be freed */