Lines Matching refs:pages

273 		struct page *page = osd_data->pages[i];  in finish_read()
292 kfree(osd_data->pages); in finish_read()
295 static void ceph_unlock_page_vector(struct page **pages, int num_pages) in ceph_unlock_page_vector() argument
300 unlock_page(pages[i]); in ceph_unlock_page_vector()
318 struct page **pages; in start_read() local
349 pages = kmalloc(sizeof(*pages) * nr_pages, GFP_NOFS); in start_read()
351 if (!pages) in start_read()
369 pages[i] = page; in start_read()
371 osd_req_op_extent_osd_data_pages(req, 0, pages, len, 0, false, false); in start_read()
385 ceph_unlock_page_vector(pages, nr_pages); in start_read()
386 ceph_release_page_vector(pages, nr_pages); in start_read()
579 static void ceph_release_pages(struct page **pages, int num) in ceph_release_pages() argument
586 if (pagevec_add(&pvec, pages[i]) == 0) in ceph_release_pages()
637 page = osd_data->pages[i]; in writepages_finish()
668 ceph_release_pages(osd_data->pages, num_pages); in writepages_finish()
670 mempool_free(osd_data->pages, in writepages_finish()
673 kfree(osd_data->pages); in writepages_finish()
778 struct page **pages = NULL; in ceph_writepages_start() local
802 page = pvec.pages[i]; in ceph_writepages_start()
867 BUG_ON(pages); in ceph_writepages_start()
893 pages = kmalloc(max_pages * sizeof (*pages), in ceph_writepages_start()
895 if (!pages) { in ceph_writepages_start()
897 pages = mempool_alloc(pool, GFP_NOFS); in ceph_writepages_start()
898 BUG_ON(!pages); in ceph_writepages_start()
917 pages[locked_pages] = page; in ceph_writepages_start()
940 pvec.pages[j]); in ceph_writepages_start()
941 pvec.pages[j-i+first] = pvec.pages[j]; in ceph_writepages_start()
948 offset = page_offset(pages[0]); in ceph_writepages_start()
954 osd_req_op_extent_osd_data_pages(req, 0, pages, len, 0, in ceph_writepages_start()
957 pages = NULL; /* request message now owns the pages array */ in ceph_writepages_start()
980 pvec.nr ? pvec.pages[0] : NULL); in ceph_writepages_start()