Lines Matching refs:pages

13 void ceph_put_page_vector(struct page **pages, int num_pages, bool dirty)  in ceph_put_page_vector()  argument
19 set_page_dirty_lock(pages[i]); in ceph_put_page_vector()
20 put_page(pages[i]); in ceph_put_page_vector()
22 kvfree(pages); in ceph_put_page_vector()
26 void ceph_release_page_vector(struct page **pages, int num_pages) in ceph_release_page_vector() argument
31 __free_pages(pages[i], 0); in ceph_release_page_vector()
32 kfree(pages); in ceph_release_page_vector()
41 struct page **pages; in ceph_alloc_page_vector() local
44 pages = kmalloc_array(num_pages, sizeof(*pages), flags); in ceph_alloc_page_vector()
45 if (!pages) in ceph_alloc_page_vector()
48 pages[i] = __page_cache_alloc(flags); in ceph_alloc_page_vector()
49 if (pages[i] == NULL) { in ceph_alloc_page_vector()
50 ceph_release_page_vector(pages, i); in ceph_alloc_page_vector()
54 return pages; in ceph_alloc_page_vector()
61 int ceph_copy_user_to_page_vector(struct page **pages, in ceph_copy_user_to_page_vector() argument
72 bad = copy_from_user(page_address(pages[i]) + po, data, l); in ceph_copy_user_to_page_vector()
87 void ceph_copy_to_page_vector(struct page **pages, in ceph_copy_to_page_vector() argument
98 memcpy(page_address(pages[i]) + po, data, l); in ceph_copy_to_page_vector()
110 void ceph_copy_from_page_vector(struct page **pages, in ceph_copy_from_page_vector() argument
121 memcpy(data, page_address(pages[i]) + po, l); in ceph_copy_from_page_vector()
137 void ceph_zero_page_vector_range(int off, int len, struct page **pages) in ceph_zero_page_vector_range() argument
148 dout("zeroing %d %p head from %d\n", i, pages[i], in ceph_zero_page_vector_range()
150 zero_user_segment(pages[i], off, end); in ceph_zero_page_vector_range()
155 dout("zeroing %d %p len=%d\n", i, pages[i], len); in ceph_zero_page_vector_range()
156 zero_user_segment(pages[i], 0, PAGE_SIZE); in ceph_zero_page_vector_range()
162 dout("zeroing %d %p tail to %d\n", i, pages[i], (int)len); in ceph_zero_page_vector_range()
163 zero_user_segment(pages[i], 0, len); in ceph_zero_page_vector_range()