Lines Matching refs:pvec
856 struct pagevec pvec; in shmem_unlock_mapping() local
860 pagevec_init(&pvec); in shmem_unlock_mapping()
869 pvec.nr = find_get_entries(mapping, index, in shmem_unlock_mapping()
870 PAGEVEC_SIZE, pvec.pages, indices); in shmem_unlock_mapping()
871 if (!pvec.nr) in shmem_unlock_mapping()
873 index = indices[pvec.nr - 1] + 1; in shmem_unlock_mapping()
874 pagevec_remove_exceptionals(&pvec); in shmem_unlock_mapping()
875 check_move_unevictable_pages(&pvec); in shmem_unlock_mapping()
876 pagevec_release(&pvec); in shmem_unlock_mapping()
920 struct pagevec pvec; in shmem_undo_range() local
929 pagevec_init(&pvec); in shmem_undo_range()
932 pvec.nr = find_get_entries(mapping, index, in shmem_undo_range()
934 pvec.pages, indices); in shmem_undo_range()
935 if (!pvec.nr) in shmem_undo_range()
937 for (i = 0; i < pagevec_count(&pvec); i++) { in shmem_undo_range()
938 struct page *page = pvec.pages[i]; in shmem_undo_range()
965 pagevec_remove_exceptionals(&pvec); in shmem_undo_range()
966 pagevec_release(&pvec); in shmem_undo_range()
1003 pvec.nr = find_get_entries(mapping, index, in shmem_undo_range()
1005 pvec.pages, indices); in shmem_undo_range()
1006 if (!pvec.nr) { in shmem_undo_range()
1014 for (i = 0; i < pagevec_count(&pvec); i++) { in shmem_undo_range()
1015 struct page *page = pvec.pages[i]; in shmem_undo_range()
1057 pagevec_remove_exceptionals(&pvec); in shmem_undo_range()
1058 pagevec_release(&pvec); in shmem_undo_range()
1246 static int shmem_unuse_swap_entries(struct inode *inode, struct pagevec pvec, in shmem_unuse_swap_entries() argument
1254 for (i = 0; i < pvec.nr; i++) { in shmem_unuse_swap_entries()
1255 struct page *page = pvec.pages[i]; in shmem_unuse_swap_entries()
1283 struct pagevec pvec; in shmem_unuse_inode() local
1288 pagevec_init(&pvec); in shmem_unuse_inode()
1295 pvec.nr = shmem_find_swap_entries(mapping, start, nr_entries, in shmem_unuse_inode()
1296 pvec.pages, indices, in shmem_unuse_inode()
1298 if (pvec.nr == 0) { in shmem_unuse_inode()
1303 ret = shmem_unuse_swap_entries(inode, pvec, indices); in shmem_unuse_inode()
1315 start = indices[pvec.nr - 1]; in shmem_unuse_inode()
2658 struct pagevec pvec; in shmem_seek_hole_data() local
2663 pagevec_init(&pvec); in shmem_seek_hole_data()
2664 pvec.nr = 1; /* start small: we may be there already */ in shmem_seek_hole_data()
2666 pvec.nr = find_get_entries(mapping, index, in shmem_seek_hole_data()
2667 pvec.nr, pvec.pages, indices); in shmem_seek_hole_data()
2668 if (!pvec.nr) { in shmem_seek_hole_data()
2673 for (i = 0; i < pvec.nr; i++, index++) { in shmem_seek_hole_data()
2681 page = pvec.pages[i]; in shmem_seek_hole_data()
2693 pagevec_remove_exceptionals(&pvec); in shmem_seek_hole_data()
2694 pagevec_release(&pvec); in shmem_seek_hole_data()
2695 pvec.nr = PAGEVEC_SIZE; in shmem_seek_hole_data()