Home
last modified time | relevance | path

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

/fs/nilfs2/
Dpage.c244 struct pagevec pvec; in nilfs_copy_dirty_pages() local
249 pagevec_init(&pvec); in nilfs_copy_dirty_pages()
251 if (!pagevec_lookup_tag(&pvec, smap, &index, PAGECACHE_TAG_DIRTY)) in nilfs_copy_dirty_pages()
254 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_copy_dirty_pages()
255 struct page *page = pvec.pages[i], *dpage; in nilfs_copy_dirty_pages()
279 pagevec_release(&pvec); in nilfs_copy_dirty_pages()
298 struct pagevec pvec; in nilfs_copy_back_pages() local
302 pagevec_init(&pvec); in nilfs_copy_back_pages()
304 n = pagevec_lookup(&pvec, smap, &index); in nilfs_copy_back_pages()
308 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_copy_back_pages()
[all …]
Dsegment.c688 struct pagevec pvec; in nilfs_lookup_dirty_data_buffers() local
702 pagevec_init(&pvec); in nilfs_lookup_dirty_data_buffers()
705 !pagevec_lookup_range_tag(&pvec, mapping, &index, last, in nilfs_lookup_dirty_data_buffers()
709 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_lookup_dirty_data_buffers()
711 struct page *page = pvec.pages[i]; in nilfs_lookup_dirty_data_buffers()
726 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
732 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
742 struct pagevec pvec; in nilfs_lookup_dirty_node_buffers() local
747 pagevec_init(&pvec); in nilfs_lookup_dirty_node_buffers()
749 while (pagevec_lookup_tag(&pvec, mapping, &index, in nilfs_lookup_dirty_node_buffers()
[all …]
Dbtree.c2140 struct pagevec pvec; in nilfs_btree_lookup_dirty_buffers() local
2150 pagevec_init(&pvec); in nilfs_btree_lookup_dirty_buffers()
2152 while (pagevec_lookup_tag(&pvec, btcache, &index, in nilfs_btree_lookup_dirty_buffers()
2154 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_btree_lookup_dirty_buffers()
2155 bh = head = page_buffers(pvec.pages[i]); in nilfs_btree_lookup_dirty_buffers()
2162 pagevec_release(&pvec); in nilfs_btree_lookup_dirty_buffers()
/fs/iomap/
Dseek.c80 struct pagevec pvec; in page_cache_seek_hole_data() local
85 pagevec_init(&pvec); in page_cache_seek_hole_data()
90 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, &index, in page_cache_seek_hole_data()
96 struct page *page = pvec.pages[i]; in page_cache_seek_hole_data()
102 pagevec_release(&pvec); in page_cache_seek_hole_data()
115 pagevec_release(&pvec); in page_cache_seek_hole_data()
/fs/gfs2/
Daops.c240 struct pagevec *pvec, in gfs2_write_jdata_pagevec() argument
255 struct page *page = pvec->pages[i]; in gfs2_write_jdata_pagevec()
338 struct pagevec pvec; in gfs2_write_cache_jdata() local
348 pagevec_init(&pvec); in gfs2_write_cache_jdata()
374 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in gfs2_write_cache_jdata()
379 ret = gfs2_write_jdata_pagevec(mapping, wbc, &pvec, nr_pages, &done_index); in gfs2_write_cache_jdata()
384 pagevec_release(&pvec); in gfs2_write_cache_jdata()
/fs/ceph/
Daddr.c788 struct pagevec pvec; in ceph_writepages_start() local
812 pagevec_init(&pvec); in ceph_writepages_start()
870 pvec_pages = pagevec_lookup_range_nr_tag(&pvec, mapping, &index, in ceph_writepages_start()
877 page = pvec.pages[i]; in ceph_writepages_start()
997 pvec.pages[i] = NULL; in ceph_writepages_start()
1009 if (!pvec.pages[j]) in ceph_writepages_start()
1012 pvec.pages[n] = pvec.pages[j]; in ceph_writepages_start()
1015 pvec.nr = n; in ceph_writepages_start()
1020 pagevec_release(&pvec); in ceph_writepages_start()
1145 dout("pagevec_release on %d pages (%p)\n", (int)pvec.nr, in ceph_writepages_start()
[all …]
/fs/hugetlbfs/
Dinode.c115 static void huge_pagevec_release(struct pagevec *pvec) in huge_pagevec_release() argument
119 for (i = 0; i < pagevec_count(pvec); ++i) in huge_pagevec_release()
120 put_page(pvec->pages[i]); in huge_pagevec_release()
122 pagevec_reinit(pvec); in huge_pagevec_release()
422 struct pagevec pvec; in remove_inode_hugepages() local
429 pagevec_init(&pvec); in remove_inode_hugepages()
435 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages()
438 for (i = 0; i < pagevec_count(&pvec); ++i) { in remove_inode_hugepages()
439 struct page *page = pvec.pages[i]; in remove_inode_hugepages()
487 huge_pagevec_release(&pvec); in remove_inode_hugepages()
/fs/f2fs/
Dnode.c1445 struct pagevec pvec; in last_fsync_dnode() local
1449 pagevec_init(&pvec); in last_fsync_dnode()
1452 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in last_fsync_dnode()
1457 struct page *page = pvec.pages[i]; in last_fsync_dnode()
1461 pagevec_release(&pvec); in last_fsync_dnode()
1492 pagevec_release(&pvec); in last_fsync_dnode()
1653 struct pagevec pvec; in f2fs_fsync_node_pages() local
1667 pagevec_init(&pvec); in f2fs_fsync_node_pages()
1670 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in f2fs_fsync_node_pages()
1675 struct page *page = pvec.pages[i]; in f2fs_fsync_node_pages()
[all …]
Dcheckpoint.c367 struct pagevec pvec; in f2fs_sync_meta_pages() local
375 pagevec_init(&pvec); in f2fs_sync_meta_pages()
379 while ((nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in f2fs_sync_meta_pages()
384 struct page *page = pvec.pages[i]; in f2fs_sync_meta_pages()
389 pagevec_release(&pvec); in f2fs_sync_meta_pages()
419 pagevec_release(&pvec); in f2fs_sync_meta_pages()
Ddata.c2422 struct pagevec pvec; in f2fs_write_cache_pages() local
2436 pagevec_init(&pvec); in f2fs_write_cache_pages()
2470 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in f2fs_write_cache_pages()
2476 struct page *page = pvec.pages[i]; in f2fs_write_cache_pages()
2546 pagevec_release(&pvec); in f2fs_write_cache_pages()
/fs/fscache/
Dpage.c1219 struct pagevec pvec; in __fscache_uncache_all_inode_pages() local
1230 pagevec_init(&pvec); in __fscache_uncache_all_inode_pages()
1233 if (!pagevec_lookup(&pvec, mapping, &next)) in __fscache_uncache_all_inode_pages()
1235 for (i = 0; i < pagevec_count(&pvec); i++) { in __fscache_uncache_all_inode_pages()
1236 struct page *page = pvec.pages[i]; in __fscache_uncache_all_inode_pages()
1242 pagevec_release(&pvec); in __fscache_uncache_all_inode_pages()
/fs/ext4/
Dinode.c1707 struct pagevec pvec; in mpage_release_unused_pages() local
1724 pagevec_init(&pvec); in mpage_release_unused_pages()
1726 nr_pages = pagevec_lookup_range(&pvec, mapping, &index, end); in mpage_release_unused_pages()
1730 struct page *page = pvec.pages[i]; in mpage_release_unused_pages()
1742 pagevec_release(&pvec); in mpage_release_unused_pages()
2381 struct pagevec pvec; in mpage_map_and_submit_buffers() local
2396 pagevec_init(&pvec); in mpage_map_and_submit_buffers()
2398 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, in mpage_map_and_submit_buffers()
2403 struct page *page = pvec.pages[i]; in mpage_map_and_submit_buffers()
2425 pagevec_release(&pvec); in mpage_map_and_submit_buffers()
[all …]
/fs/
Dbuffer.c1568 struct pagevec pvec; in clean_bdev_aliases() local
1576 pagevec_init(&pvec); in clean_bdev_aliases()
1577 while (pagevec_lookup_range(&pvec, bd_mapping, &index, end)) { in clean_bdev_aliases()
1578 count = pagevec_count(&pvec); in clean_bdev_aliases()
1580 struct page *page = pvec.pages[i]; in clean_bdev_aliases()
1609 pagevec_release(&pvec); in clean_bdev_aliases()
/fs/btrfs/
Dextent_io.c3930 struct pagevec pvec; in btree_write_cache_pages() local
3937 pagevec_init(&pvec); in btree_write_cache_pages()
3954 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in btree_write_cache_pages()
3960 struct page *page = pvec.pages[i]; in btree_write_cache_pages()
4019 pagevec_release(&pvec); in btree_write_cache_pages()
4062 struct pagevec pvec; in extent_write_cache_pages() local
4083 pagevec_init(&pvec); in extent_write_cache_pages()
4116 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, in extent_write_cache_pages()
4122 struct page *page = pvec.pages[i]; in extent_write_cache_pages()
4170 pagevec_release(&pvec); in extent_write_cache_pages()