Home
last modified time | relevance | path

Searched refs:pvec (Results 1 – 6 of 6) sorted by relevance

/mm/
Dswap.c104 static void pagevec_move_tail(struct pagevec *pvec) in pagevec_move_tail() argument
110 for (i = 0; i < pagevec_count(pvec); i++) { in pagevec_move_tail()
111 struct page *page = pvec->pages[i]; in pagevec_move_tail()
129 release_pages(pvec->pages, pvec->nr, pvec->cold); in pagevec_move_tail()
130 pagevec_reinit(pvec); in pagevec_move_tail()
142 struct pagevec *pvec; in rotate_reclaimable_page() local
147 pvec = &__get_cpu_var(lru_rotate_pvecs); in rotate_reclaimable_page()
148 if (!pagevec_add(pvec, page)) in rotate_reclaimable_page()
149 pagevec_move_tail(pvec); in rotate_reclaimable_page()
219 struct pagevec *pvec = &get_cpu_var(lru_add_pvecs)[lru]; in __lru_cache_add() local
[all …]
Dtruncate.c167 struct pagevec pvec; in truncate_inode_pages_range() local
177 pagevec_init(&pvec, 0); in truncate_inode_pages_range()
180 pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) { in truncate_inode_pages_range()
181 for (i = 0; i < pagevec_count(&pvec); i++) { in truncate_inode_pages_range()
182 struct page *page = pvec.pages[i]; in truncate_inode_pages_range()
207 pagevec_release(&pvec); in truncate_inode_pages_range()
224 if (!pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) { in truncate_inode_pages_range()
230 if (pvec.pages[0]->index > end) { in truncate_inode_pages_range()
231 pagevec_release(&pvec); in truncate_inode_pages_range()
234 for (i = 0; i < pagevec_count(&pvec); i++) { in truncate_inode_pages_range()
[all …]
Dvmscan.c1048 struct pagevec pvec; in shrink_inactive_list() local
1053 pagevec_init(&pvec, 1); in shrink_inactive_list()
1162 if (!pagevec_add(&pvec, page)) { in shrink_inactive_list()
1164 __pagevec_release(&pvec); in shrink_inactive_list()
1172 pagevec_release(&pvec); in shrink_inactive_list()
1218 struct pagevec pvec; in shrink_active_list() local
1264 pagevec_init(&pvec, 1); in shrink_active_list()
1288 if (!pagevec_add(&pvec, page)) { in shrink_active_list()
1294 pagevec_strip(&pvec); in shrink_active_list()
1295 __pagevec_release(&pvec); in shrink_active_list()
[all …]
Dpage-writeback.c939 struct pagevec pvec; in write_cache_pages() local
954 pagevec_init(&pvec, 0); in write_cache_pages()
975 nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in write_cache_pages()
982 struct page *page = pvec.pages[i]; in write_cache_pages()
1079 pagevec_release(&pvec); in write_cache_pages()
Dfilemap.c269 struct pagevec pvec; in wait_on_page_writeback_range() local
277 pagevec_init(&pvec, 0); in wait_on_page_writeback_range()
280 (nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in wait_on_page_writeback_range()
286 struct page *page = pvec.pages[i]; in wait_on_page_writeback_range()
296 pagevec_release(&pvec); in wait_on_page_writeback_range()
Dpage_alloc.c1708 void __pagevec_free(struct pagevec *pvec) in __pagevec_free() argument
1710 int i = pagevec_count(pvec); in __pagevec_free()
1713 free_hot_cold_page(pvec->pages[i], pvec->cold); in __pagevec_free()