Lines Matching refs:pages
349 struct page **pages, int num_pages, in striped_read() argument
368 page_pos = pages; in striped_read()
400 ceph_zero_page_vector_range(zoff, zlen, pages); in striped_read()
438 struct page **pages; in ceph_sync_read() local
465 n = iov_iter_get_pages_alloc(i, &pages, INT_MAX, &start); in ceph_sync_read()
472 pages, num_pages, checkeof, in ceph_sync_read()
475 ceph_put_page_vector(pages, num_pages, true); in ceph_sync_read()
486 pages = ceph_alloc_page_vector(num_pages, GFP_NOFS); in ceph_sync_read()
487 if (IS_ERR(pages)) in ceph_sync_read()
488 return PTR_ERR(pages); in ceph_sync_read()
489 ret = striped_read(inode, off, len, pages, in ceph_sync_read()
499 l = copy_page_to_iter(pages[k++], page_off, in ceph_sync_read()
507 ceph_release_page_vector(pages, num_pages); in ceph_sync_read()
569 struct page **pages; in ceph_sync_direct_write() local
619 n = iov_iter_get_pages_alloc(from, &pages, len, &start); in ceph_sync_direct_write()
633 osd_req_op_extent_osd_data_pages(req, 0, pages, n, start, in ceph_sync_direct_write()
643 ceph_put_page_vector(pages, num_pages, false); in ceph_sync_direct_write()
686 struct page **pages; in ceph_sync_write() local
739 pages = ceph_alloc_page_vector(num_pages, GFP_NOFS); in ceph_sync_write()
740 if (IS_ERR(pages)) { in ceph_sync_write()
741 ret = PTR_ERR(pages); in ceph_sync_write()
748 ret = copy_page_from_iter(pages[n], 0, plen, from); in ceph_sync_write()
757 ceph_release_page_vector(pages, num_pages); in ceph_sync_write()
765 osd_req_op_extent_osd_data_pages(req, 0, pages, len, 0, in ceph_sync_write()