Lines Matching refs:num_pages
17 int num_pages, bool write_page) in ceph_get_direct_page_vector() argument
23 pages = kmalloc_array(num_pages, sizeof(*pages), GFP_NOFS); in ceph_get_direct_page_vector()
27 while (got < num_pages) { in ceph_get_direct_page_vector()
30 num_pages - got, write_page, pages + got); in ceph_get_direct_page_vector()
46 void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty) in ceph_put_page_vector() argument
50 for (i = 0; i < num_pages; i++) { in ceph_put_page_vector()
59 void ceph_release_page_vector(struct page **pages, int num_pages) in ceph_release_page_vector() argument
63 for (i = 0; i < num_pages; i++) in ceph_release_page_vector()
72 struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags) in ceph_alloc_page_vector() argument
77 pages = kmalloc_array(num_pages, sizeof(*pages), flags); in ceph_alloc_page_vector()
80 for (i = 0; i < num_pages; i++) { in ceph_alloc_page_vector()