Lines Matching defs:page
66 struct address_space *mapping, u64 start, struct page **pages,
114 unsigned char *data_in, struct page *dest_page,
151 struct page *page;
164 page = cb->compressed_pages[i];
166 kaddr = kmap_atomic(page);
198 struct page *page;
244 page = cb->compressed_pages[index];
245 page->mapping = NULL;
246 put_page(page);
257 * we have verified the checksum already, set page
283 struct page *pages[16];
324 struct page *page;
355 page = cb->compressed_pages[index];
356 page->mapping = NULL;
357 put_page(page);
379 struct page **compressed_pages,
389 struct page *page;
425 page = compressed_pages[pg_index];
426 page->mapping = inode->vfs_inode.i_mapping;
428 submit = btrfs_bio_fits_in_stripe(page, PAGE_SIZE, bio,
431 page->mapping = NULL;
432 if (submit || bio_add_page(bio, page, PAGE_SIZE, 0) <
462 bio_add_page(bio, page, PAGE_SIZE, 0);
510 struct page *page;
534 page = xa_load(&mapping->i_pages, pg_index);
535 if (page && !xa_is_value(page)) {
542 page = __page_cache_alloc(mapping_gfp_constraint(mapping,
544 if (!page)
547 if (add_to_page_cache_lru(page, mapping, pg_index, GFP_NOFS)) {
548 put_page(page);
554 * at this point, we have a locked page in the page cache
558 set_page_extent_mapped(page);
570 unlock_page(page);
571 put_page(page);
576 if (page->index == end_index) {
583 userpage = kmap_atomic(page);
585 flush_dcache_page(page);
590 ret = bio_add_page(cb->orig_bio, page,
595 put_page(page);
598 unlock_page(page);
599 put_page(page);
628 struct page *page;
674 cb->compressed_pages = kcalloc(nr_pages, sizeof(struct page *),
705 page = cb->compressed_pages[pg_index];
706 page->mapping = inode->i_mapping;
707 page->index = em_start >> PAGE_SHIFT;
710 submit = btrfs_bio_fits_in_stripe(page, PAGE_SIZE,
713 page->mapping = NULL;
714 if (submit || bio_add_page(comp_bio, page, PAGE_SIZE, 0) <
751 bio_add_page(comp_bio, page, PAGE_SIZE, 0);
1150 u64 start, struct page **pages,
1197 * single page, and we want to read a single page out of it.
1200 int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page,
1251 * start byte is the first byte of the page we're currently
1256 /* we haven't yet hit data corresponding to this page */
1287 /* check if we need to pick another page */
1303 * make sure our new page is covered by this
1310 * the next page in the biovec might not be adjacent
1311 * to the last page, but it might still be found
1572 struct page *page;
1598 page = find_get_page(inode->i_mapping, index);
1599 in_data = kmap(page);
1603 /* Don't sample any garbage from the last page */
1612 kunmap(page);
1613 put_page(page);