Home
last modified time | relevance | path

Searched refs:pvec (Results 1 – 16 of 16) 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.c702 struct pagevec pvec; in nilfs_lookup_dirty_data_buffers() local
716 pagevec_init(&pvec); in nilfs_lookup_dirty_data_buffers()
719 !pagevec_lookup_range_tag(&pvec, mapping, &index, last, in nilfs_lookup_dirty_data_buffers()
723 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_lookup_dirty_data_buffers()
725 struct page *page = pvec.pages[i]; in nilfs_lookup_dirty_data_buffers()
745 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
751 pagevec_release(&pvec); in nilfs_lookup_dirty_data_buffers()
761 struct pagevec pvec; in nilfs_lookup_dirty_node_buffers() local
769 pagevec_init(&pvec); in nilfs_lookup_dirty_node_buffers()
771 while (pagevec_lookup_tag(&pvec, btnc_inode->i_mapping, &index, in nilfs_lookup_dirty_node_buffers()
[all …]
Dbtree.c2155 struct pagevec pvec; in nilfs_btree_lookup_dirty_buffers() local
2165 pagevec_init(&pvec); in nilfs_btree_lookup_dirty_buffers()
2167 while (pagevec_lookup_tag(&pvec, btcache, &index, in nilfs_btree_lookup_dirty_buffers()
2169 for (i = 0; i < pagevec_count(&pvec); i++) { in nilfs_btree_lookup_dirty_buffers()
2170 bh = head = page_buffers(pvec.pages[i]); in nilfs_btree_lookup_dirty_buffers()
2177 pagevec_release(&pvec); in nilfs_btree_lookup_dirty_buffers()
/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.c715 struct pagevec pvec; in ceph_writepages_start() local
739 pagevec_init(&pvec); in ceph_writepages_start()
797 pvec_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, in ceph_writepages_start()
803 page = pvec.pages[i]; in ceph_writepages_start()
923 pvec.pages[i] = NULL; in ceph_writepages_start()
935 if (!pvec.pages[j]) in ceph_writepages_start()
938 pvec.pages[n] = pvec.pages[j]; in ceph_writepages_start()
941 pvec.nr = n; in ceph_writepages_start()
946 pagevec_release(&pvec); in ceph_writepages_start()
1071 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()
490 struct pagevec pvec; in remove_inode_hugepages() local
495 pagevec_init(&pvec); in remove_inode_hugepages()
501 if (!pagevec_lookup_range(&pvec, mapping, &next, end - 1)) in remove_inode_hugepages()
504 for (i = 0; i < pagevec_count(&pvec); ++i) { in remove_inode_hugepages()
505 struct page *page = pvec.pages[i]; in remove_inode_hugepages()
564 huge_pagevec_release(&pvec); in remove_inode_hugepages()
/fs/afs/
Dwrite.c439 struct pagevec pvec; in afs_extend_writeback() local
450 pagevec_init(&pvec); in afs_extend_writeback()
507 if (!pagevec_add(&pvec, page)) in afs_extend_writeback()
520 if (!pagevec_count(&pvec)) in afs_extend_writeback()
523 for (i = 0; i < pagevec_count(&pvec); i++) { in afs_extend_writeback()
524 page = pvec.pages[i]; in afs_extend_writeback()
536 pagevec_release(&pvec); in afs_extend_writeback()
/fs/f2fs/
Dnode.c1517 struct pagevec pvec; in last_fsync_dnode() local
1521 pagevec_init(&pvec); in last_fsync_dnode()
1524 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in last_fsync_dnode()
1529 struct page *page = pvec.pages[i]; in last_fsync_dnode()
1533 pagevec_release(&pvec); in last_fsync_dnode()
1564 pagevec_release(&pvec); in last_fsync_dnode()
1730 struct pagevec pvec; in f2fs_fsync_node_pages() local
1744 pagevec_init(&pvec); in f2fs_fsync_node_pages()
1747 while ((nr_pages = pagevec_lookup_tag(&pvec, NODE_MAPPING(sbi), &index, in f2fs_fsync_node_pages()
1752 struct page *page = pvec.pages[i]; in f2fs_fsync_node_pages()
[all …]
Dcompress.c843 bool f2fs_all_cluster_page_loaded(struct compress_ctx *cc, struct pagevec *pvec, in f2fs_all_cluster_page_loaded() argument
852 pgidx = pvec->pages[index]->index; in f2fs_all_cluster_page_loaded()
855 if (pvec->pages[index + i]->index != pgidx + i) in f2fs_all_cluster_page_loaded()
1909 struct pagevec pvec; in f2fs_invalidate_compress_pages() local
1916 pagevec_init(&pvec); in f2fs_invalidate_compress_pages()
1922 nr_pages = pagevec_lookup_range(&pvec, mapping, in f2fs_invalidate_compress_pages()
1928 struct page *page = pvec.pages[i]; in f2fs_invalidate_compress_pages()
1947 pagevec_release(&pvec); in f2fs_invalidate_compress_pages()
Dcheckpoint.c399 struct pagevec pvec; in f2fs_sync_meta_pages() local
407 pagevec_init(&pvec); in f2fs_sync_meta_pages()
411 while ((nr_pages = pagevec_lookup_tag(&pvec, mapping, &index, in f2fs_sync_meta_pages()
416 struct page *page = pvec.pages[i]; in f2fs_sync_meta_pages()
421 pagevec_release(&pvec); in f2fs_sync_meta_pages()
451 pagevec_release(&pvec); in f2fs_sync_meta_pages()
Ddata.c2919 struct pagevec pvec; in f2fs_write_cache_pages() local
2950 pagevec_init(&pvec); in f2fs_write_cache_pages()
2977 nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in f2fs_write_cache_pages()
2983 struct page *page = pvec.pages[i]; in f2fs_write_cache_pages()
3025 &pvec, i, nr_pages))) { in f2fs_write_cache_pages()
3115 pagevec_release(&pvec); in f2fs_write_cache_pages()
Df2fs.h4222 bool f2fs_all_cluster_page_loaded(struct compress_ctx *cc, struct pagevec *pvec,
/fs/fscache/
Dpage.c1213 struct pagevec pvec; in __fscache_uncache_all_inode_pages() local
1224 pagevec_init(&pvec); in __fscache_uncache_all_inode_pages()
1227 if (!pagevec_lookup(&pvec, mapping, &next)) in __fscache_uncache_all_inode_pages()
1229 for (i = 0; i < pagevec_count(&pvec); i++) { in __fscache_uncache_all_inode_pages()
1230 struct page *page = pvec.pages[i]; in __fscache_uncache_all_inode_pages()
1236 pagevec_release(&pvec); in __fscache_uncache_all_inode_pages()
/fs/ext4/
Dinode.c1567 struct pagevec pvec; in mpage_release_unused_pages() local
1592 pagevec_init(&pvec); in mpage_release_unused_pages()
1594 nr_pages = pagevec_lookup_range(&pvec, mapping, &index, end); in mpage_release_unused_pages()
1598 struct page *page = pvec.pages[i]; in mpage_release_unused_pages()
1610 pagevec_release(&pvec); in mpage_release_unused_pages()
2328 struct pagevec pvec; in mpage_map_and_submit_buffers() local
2343 pagevec_init(&pvec); in mpage_map_and_submit_buffers()
2345 nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, in mpage_map_and_submit_buffers()
2350 struct page *page = pvec.pages[i]; in mpage_map_and_submit_buffers()
2366 pagevec_release(&pvec); in mpage_map_and_submit_buffers()
[all …]
/fs/
Dbuffer.c1611 struct pagevec pvec; in clean_bdev_aliases() local
1619 pagevec_init(&pvec); in clean_bdev_aliases()
1620 while (pagevec_lookup_range(&pvec, bd_mapping, &index, end)) { in clean_bdev_aliases()
1621 count = pagevec_count(&pvec); in clean_bdev_aliases()
1623 struct page *page = pvec.pages[i]; in clean_bdev_aliases()
1652 pagevec_release(&pvec); in clean_bdev_aliases()
/fs/btrfs/
Dextent_io.c4801 struct pagevec pvec; in btree_write_cache_pages() local
4808 pagevec_init(&pvec); in btree_write_cache_pages()
4831 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, end, in btree_write_cache_pages()
4836 struct page *page = pvec.pages[i]; in btree_write_cache_pages()
4854 pagevec_release(&pvec); in btree_write_cache_pages()
4931 struct pagevec pvec; in extent_write_cache_pages() local
4952 pagevec_init(&pvec); in extent_write_cache_pages()
4990 (nr_pages = pagevec_lookup_range_tag(&pvec, mapping, in extent_write_cache_pages()
4995 struct page *page = pvec.pages[i]; in extent_write_cache_pages()
5043 pagevec_release(&pvec); in extent_write_cache_pages()