Home
last modified time | relevance | path

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

/fs/nilfs2/
Dpage.c243 struct pagevec pvec; in nilfs_copy_dirty_pages() local
248 pagevec_init(&pvec); in nilfs_copy_dirty_pages()
250 if (!pagevec_lookup_tag(&pvec, smap, &index, PAGECACHE_TAG_DIRTY)) in nilfs_copy_dirty_pages()
253 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_copy_dirty_pages()
254 struct page *page = pvec.pages[i], *dpage; in nilfs_copy_dirty_pages()
278 pagevec_release(&pvec); in nilfs_copy_dirty_pages()
297 struct pagevec pvec; in nilfs_copy_back_pages() local
301 pagevec_init(&pvec); in nilfs_copy_back_pages()
303 n = pagevec_lookup(&pvec, smap, &index); in nilfs_copy_back_pages()
307 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_copy_back_pages()
[all …]
Dsegment.c707 struct pagevec pvec; in nilfs_lookup_dirty_data_buffers() local
721 pagevec_init(&pvec); in nilfs_lookup_dirty_data_buffers()
724 !pagevec_lookup_range_tag(&pvec, mapping, &index, last, in nilfs_lookup_dirty_data_buffers()
728 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_lookup_dirty_data_buffers()
730 struct page *page = pvec.pages[i]; in nilfs_lookup_dirty_data_buffers()
750 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
756 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
766 struct pagevec pvec; in nilfs_lookup_dirty_node_buffers() local
774 pagevec_init(&pvec); in nilfs_lookup_dirty_node_buffers()
776 while (pagevec_lookup_tag(&pvec, btnc_inode->i_mapping, &index, in nilfs_lookup_dirty_node_buffers()
[all …]
Dbtree.c2156 struct pagevec pvec; in nilfs_btree_lookup_dirty_buffers() local
2166 pagevec_init(&pvec); in nilfs_btree_lookup_dirty_buffers()
2168 while (pagevec_lookup_tag(&pvec, btcache, &index, in nilfs_btree_lookup_dirty_buffers()
2170 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_btree_lookup_dirty_buffers()
2171 bh = head = page_buffers(pvec.pages[i]); in nilfs_btree_lookup_dirty_buffers()
2178 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.c234 struct pagevec *pvec, in gfs2_write_jdata_pagevec() argument
249 struct page *page = pvec->pages[i]; in gfs2_write_jdata_pagevec()
332 struct pagevec pvec; in gfs2_write_cache_jdata() local
342 pagevec_init(&pvec); in gfs2_write_cache_jdata()
368 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in gfs2_write_cache_jdata()
373 ret = gfs2_write_jdata_pagevec(mapping, wbc, &pvec, nr_pages, &done_index); in gfs2_write_cache_jdata()
378 pagevec_release(&pvec); in gfs2_write_cache_jdata()
/fs/ceph/
Daddr.c823 struct pagevec pvec; in ceph_writepages_start() local
847 pagevec_init(&pvec); in ceph_writepages_start()
905 pvec_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, in ceph_writepages_start()
911 page = pvec.pages[i]; in ceph_writepages_start()
1031 pvec.pages[i] = NULL; in ceph_writepages_start()
1043 if (!pvec.pages[j]) in ceph_writepages_start()
1046 pvec.pages[n] = pvec.pages[j]; in ceph_writepages_start()
1049 pvec.nr = n; in ceph_writepages_start()
1054 pagevec_release(&pvec); in ceph_writepages_start()
1179 dout("pagevec_release on %d pages (%p)\n", (int)pvec.nr, in ceph_writepages_start()
[all …]
/fs/hugetlbfs/
Dinode.c111 static void huge_pagevec_release(struct pagevec *pvec) in huge_pagevec_release() argument
115 for (i = 0; i < pagevec_count(pvec); ++i) in huge_pagevec_release()
116 put_page(pvec->pages[i]); in huge_pagevec_release()
118 pagevec_reinit(pvec); in huge_pagevec_release()
484 struct pagevec pvec; in remove_inode_hugepages() local
491 pagevec_init(&pvec); in remove_inode_hugepages()
497 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages()
500 for (i = 0; i < pagevec_count(&pvec); ++i) { in remove_inode_hugepages()
501 struct page *page = pvec.pages[i]; in remove_inode_hugepages()
560 huge_pagevec_release(&pvec); in remove_inode_hugepages()
/fs/f2fs/
Dnode.c1520 struct pagevec pvec; in last_fsync_dnode() local
1524 pagevec_init(&pvec); in last_fsync_dnode()
1527 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in last_fsync_dnode()
1532 struct page *page = pvec.pages[i]; in last_fsync_dnode()
1536 pagevec_release(&pvec); in last_fsync_dnode()
1567 pagevec_release(&pvec); in last_fsync_dnode()
1736 struct pagevec pvec; in f2fs_fsync_node_pages() local
1750 pagevec_init(&pvec); in f2fs_fsync_node_pages()
1753 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in f2fs_fsync_node_pages()
1758 struct page *page = pvec.pages[i]; in f2fs_fsync_node_pages()
[all …]
Dcheckpoint.c393 struct pagevec pvec; in f2fs_sync_meta_pages() local
401 pagevec_init(&pvec); in f2fs_sync_meta_pages()
405 while ((nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in f2fs_sync_meta_pages()
410 struct page *page = pvec.pages[i]; in f2fs_sync_meta_pages()
415 pagevec_release(&pvec); in f2fs_sync_meta_pages()
445 pagevec_release(&pvec); in f2fs_sync_meta_pages()
Dcompress.c1847 struct pagevec pvec; in f2fs_invalidate_compress_pages() local
1854 pagevec_init(&pvec); in f2fs_invalidate_compress_pages()
1860 nr_pages = pagevec_lookup_range(&pvec, mapping, in f2fs_invalidate_compress_pages()
1866 struct page *page = pvec.pages[i]; in f2fs_invalidate_compress_pages()
1885 pagevec_release(&pvec); in f2fs_invalidate_compress_pages()
Ddata.c2938 struct pagevec pvec; in f2fs_write_cache_pages() local
2968 pagevec_init(&pvec); in f2fs_write_cache_pages()
2995 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in f2fs_write_cache_pages()
3001 struct page *page = pvec.pages[i]; in f2fs_write_cache_pages()
3134 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.c1578 struct pagevec pvec; in mpage_release_unused_pages() local
1603 pagevec_init(&pvec); in mpage_release_unused_pages()
1605 nr_pages = pagevec_lookup_range(&pvec, mapping, &index, end); in mpage_release_unused_pages()
1609 struct page *page = pvec.pages[i]; in mpage_release_unused_pages()
1621 pagevec_release(&pvec); in mpage_release_unused_pages()
2342 struct pagevec pvec; in mpage_map_and_submit_buffers() local
2357 pagevec_init(&pvec); in mpage_map_and_submit_buffers()
2359 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, in mpage_map_and_submit_buffers()
2364 struct page *page = pvec.pages[i]; in mpage_map_and_submit_buffers()
2380 pagevec_release(&pvec); in mpage_map_and_submit_buffers()
[all …]
/fs/
Dbuffer.c1638 struct pagevec pvec; in clean_bdev_aliases() local
1646 pagevec_init(&pvec); in clean_bdev_aliases()
1647 while (pagevec_lookup_range(&pvec, bd_mapping, &index, end)) { in clean_bdev_aliases()
1648 count = pagevec_count(&pvec); in clean_bdev_aliases()
1650 struct page *page = pvec.pages[i]; in clean_bdev_aliases()
1679 pagevec_release(&pvec); in clean_bdev_aliases()
/fs/btrfs/
Dextent_io.c3950 struct pagevec pvec; in btree_write_cache_pages() local
3957 pagevec_init(&pvec); in btree_write_cache_pages()
3979 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in btree_write_cache_pages()
3984 struct page *page = pvec.pages[i]; in btree_write_cache_pages()
4044 pagevec_release(&pvec); in btree_write_cache_pages()
4119 struct pagevec pvec; in extent_write_cache_pages() local
4140 pagevec_init(&pvec); in extent_write_cache_pages()
4178 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, in extent_write_cache_pages()
4183 struct page *page = pvec.pages[i]; in extent_write_cache_pages()
4231 pagevec_release(&pvec); in extent_write_cache_pages()