Lines Matching refs:num_pages
16 int num_pages, bool write_page) in ceph_get_direct_page_vector() argument
22 pages = kmalloc(sizeof(*pages) * num_pages, GFP_NOFS); in ceph_get_direct_page_vector()
26 while (got < num_pages) { in ceph_get_direct_page_vector()
29 num_pages - got, write_page, 0, pages + got); in ceph_get_direct_page_vector()
45 void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty) in ceph_put_page_vector() argument
49 for (i = 0; i < num_pages; i++) { in ceph_put_page_vector()
58 void ceph_release_page_vector(struct page **pages, int num_pages) in ceph_release_page_vector() argument
62 for (i = 0; i < num_pages; i++) in ceph_release_page_vector()
71 struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags) in ceph_alloc_page_vector() argument
76 pages = kmalloc(sizeof(*pages) * num_pages, flags); in ceph_alloc_page_vector()
79 for (i = 0; i < num_pages; i++) { in ceph_alloc_page_vector()