Searched refs:pages_to_free (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/mm/
H A Dquicklist.c53 long pages_to_free; min_pages_to_free() local
55 pages_to_free = q->nr_pages - max_pages(min_pages); min_pages_to_free()
57 return min(pages_to_free, max_free); min_pages_to_free()
66 long pages_to_free; quicklist_trim() local
71 pages_to_free = min_pages_to_free(q, min_pages, max_free); quicklist_trim()
73 while (pages_to_free > 0) { quicklist_trim()
83 pages_to_free--; quicklist_trim()
H A Dswap.c910 LIST_HEAD(pages_to_free); release_pages()
962 list_add(&page->lru, &pages_to_free); release_pages()
967 mem_cgroup_uncharge_list(&pages_to_free); release_pages()
968 free_hot_cold_page_list(&pages_to_free, cold); release_pages()
H A Dvmscan.c1442 LIST_HEAD(pages_to_free); putback_inactive_pages()
1482 list_add(&page->lru, &pages_to_free); putback_inactive_pages()
1489 list_splice(&pages_to_free, page_list); putback_inactive_pages()
1674 struct list_head *pages_to_free, move_active_pages_to_lru()
1705 list_add(&page->lru, pages_to_free); move_active_pages_to_lru()
1672 move_active_pages_to_lru(struct lruvec *lruvec, struct list_head *list, struct list_head *pages_to_free, enum lru_list lru) move_active_pages_to_lru() argument
/linux-4.1.27/drivers/gpu/drm/ttm/
H A Dttm_page_alloc.c308 struct page **pages_to_free; ttm_page_pool_free() local
316 pages_to_free = static_buf; ttm_page_pool_free()
318 pages_to_free = kmalloc(npages_to_free * sizeof(struct page *), ttm_page_pool_free()
320 if (!pages_to_free) { ttm_page_pool_free()
332 pages_to_free[freed_pages++] = p; ttm_page_pool_free()
345 ttm_pages_put(pages_to_free, freed_pages); ttm_page_pool_free()
380 ttm_pages_put(pages_to_free, freed_pages); ttm_page_pool_free()
382 if (pages_to_free != static_buf) ttm_page_pool_free()
383 kfree(pages_to_free); ttm_page_pool_free()
H A Dttm_page_alloc_dma.c422 struct page **pages_to_free; ttm_dma_page_pool_free() local
437 pages_to_free = static_buf; ttm_dma_page_pool_free()
439 pages_to_free = kmalloc(npages_to_free * sizeof(struct page *), ttm_dma_page_pool_free()
442 if (!pages_to_free) { ttm_dma_page_pool_free()
460 pages_to_free[freed_pages++] = dma_p->p; ttm_dma_page_pool_free()
471 ttm_dma_pages_put(pool, &d_pages, pages_to_free, ttm_dma_page_pool_free()
508 ttm_dma_pages_put(pool, &d_pages, pages_to_free, freed_pages); ttm_dma_page_pool_free()
510 if (pages_to_free != static_buf) ttm_dma_page_pool_free()
511 kfree(pages_to_free); ttm_dma_page_pool_free()

Completed in 171 milliseconds