Lines Matching refs:pages

71 	struct page **pages;  in dio_get_pages_alloc()  local
77 pages = kmalloc(sizeof(*pages) * npages, GFP_KERNEL); in dio_get_pages_alloc()
78 if (!pages) { in dio_get_pages_alloc()
79 pages = vmalloc(sizeof(*pages) * npages); in dio_get_pages_alloc()
80 if (!pages) in dio_get_pages_alloc()
86 ret = iov_iter_get_pages(&tmp_it, pages + idx, nbytes, in dio_get_pages_alloc()
100 return pages; in dio_get_pages_alloc()
102 ceph_put_page_vector(pages, idx, false); in dio_get_pages_alloc()
413 struct page **pages, int num_pages, in striped_read() argument
432 page_pos = pages; in striped_read()
464 ceph_zero_page_vector_range(zoff, zlen, pages); in striped_read()
502 struct page **pages; in ceph_sync_read() local
530 pages = dio_get_pages_alloc(i, n, &start, &num_pages); in ceph_sync_read()
531 if (IS_ERR(pages)) in ceph_sync_read()
532 return PTR_ERR(pages); in ceph_sync_read()
535 pages, num_pages, checkeof, in ceph_sync_read()
538 ceph_put_page_vector(pages, num_pages, true); in ceph_sync_read()
549 pages = ceph_alloc_page_vector(num_pages, GFP_KERNEL); in ceph_sync_read()
550 if (IS_ERR(pages)) in ceph_sync_read()
551 return PTR_ERR(pages); in ceph_sync_read()
552 ret = striped_read(inode, off, len, pages, in ceph_sync_read()
562 l = copy_page_to_iter(pages[k++], page_off, in ceph_sync_read()
570 ceph_release_page_vector(pages, num_pages); in ceph_sync_read()
632 struct page **pages; in ceph_sync_direct_write() local
682 pages = dio_get_pages_alloc(from, len, &start, &num_pages); in ceph_sync_direct_write()
683 if (IS_ERR(pages)) { in ceph_sync_direct_write()
685 ret = PTR_ERR(pages); in ceph_sync_direct_write()
695 osd_req_op_extent_osd_data_pages(req, 0, pages, n, start, in ceph_sync_direct_write()
705 ceph_put_page_vector(pages, num_pages, false); in ceph_sync_direct_write()
748 struct page **pages; in ceph_sync_write() local
800 pages = ceph_alloc_page_vector(num_pages, GFP_KERNEL); in ceph_sync_write()
801 if (IS_ERR(pages)) { in ceph_sync_write()
802 ret = PTR_ERR(pages); in ceph_sync_write()
809 ret = copy_page_from_iter(pages[n], 0, plen, from); in ceph_sync_write()
818 ceph_release_page_vector(pages, num_pages); in ceph_sync_write()
826 osd_req_op_extent_osd_data_pages(req, 0, pages, len, 0, in ceph_sync_write()