Lines Matching defs:page
162 struct page *ceph_zero_page; /* used in certain error cases */
738 static struct page *ceph_msg_data_bio_next(struct ceph_msg_data_cursor *cursor,
754 struct page *page = bio_iter_page(it->bio, it->iter);
765 page == bio_iter_page(it->bio, it->iter)))
793 static struct page *ceph_msg_data_bvecs_next(struct ceph_msg_data_cursor *cursor,
809 struct page *page = bvec_iter_page(bvecs, cursor->bvec_iter);
820 page == bvec_iter_page(bvecs, cursor->bvec_iter)))
828 * For a page array, a piece comes from the first page in the array
851 static struct page *
874 /* Advance the cursor page offset */
879 return false; /* more bytes to process in the current page */
884 /* Move on to the next page; offset is already at 0 */
893 * first page in the list, or the front of the next page.
901 struct page *page;
912 page = list_first_entry(&pagelist->head, struct page, lru);
915 cursor->page = page;
919 static struct page *
931 BUG_ON(!cursor->page);
934 /* offset of first page in pagelist is always 0 */
937 return cursor->page;
958 /* offset of first page in pagelist is always 0 */
960 return false; /* more bytes to process in the current page */
965 /* Move on to the next page */
967 BUG_ON(list_is_last(&cursor->page->lru, &pagelist->head));
968 cursor->page = list_next_entry(cursor->page, lru);
983 static struct page *ceph_msg_data_iter_next(struct ceph_msg_data_cursor *cursor,
986 struct page *page;
992 len = iov_iter_get_pages2(&cursor->iov_iter, &page, PAGE_SIZE,
1003 * page refs. Until then, just put the page ref.
1005 VM_BUG_ON_PAGE(!PageWriteback(page) && page_count(page) < 2, page);
1006 put_page(page);
1009 return page;
1030 * piece resides on a single page. The network layer might not
1081 * Return the page containing the next piece to process for a given
1082 * data item, and supply the page offset and length of that piece.
1085 struct page *ceph_msg_data_next(struct ceph_msg_data_cursor *cursor,
1088 struct page *page;
1092 page = ceph_msg_data_pagelist_next(cursor, page_offset, length);
1095 page = ceph_msg_data_pages_next(cursor, page_offset, length);
1099 page = ceph_msg_data_bio_next(cursor, page_offset, length);
1103 page = ceph_msg_data_bvecs_next(cursor, page_offset, length);
1106 page = ceph_msg_data_iter_next(cursor, page_offset, length);
1110 page = NULL;
1114 BUG_ON(!page);
1119 return page;
1164 u32 ceph_crc32c_page(u32 crc, struct page *page, unsigned int page_offset,
1169 kaddr = kmap(page);
1172 kunmap(page);
1883 void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages,